Skip to content

Use os.path.join instead of string concatenation for file paths #85

@mircealungu

Description

@mircealungu

From review of PR #81.

In src/python/src/cli_interface.py, lines like:

file_name = os.getcwd() + config["saveLocPure"] + config["name"] + f"-{view}.puml"

use string concatenation for paths. If saveLocPure doesn't start with /, this produces wrong paths (e.g. "/Users/foo" + "diagrams/""/Users/foodiagrams/").

Should use os.path.join() instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions