Skip to content

Module path resolution unreliability #7

@loopyd

Description

@loopyd

with open("./mod_generator_presets.json", 'r') as file:

When running as a module or as a compiled project, relative path references may point to a different location than intended.

Discord issue related'

Image
Image
Image

Recommended to update relative path resolution to a more reliable use of python pathlib module. Ex:

json_path = Path(file).resolve().parent.joinpath("mod_generator_preset.json")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions