Skip to content

plot_gen.py not working when in wrong directory #5

@skysley

Description

@skysley

The script plot_gen.py does not work if it is not run from inside the folder where it is located. Adding the following line after the imports resolves this:

file_dir = os.path.realpath(os.path.dirname(__file__))
os.chdir(file_dir)

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