Skip to content

Module config not found #5

@benoit-dubreuil

Description

@benoit-dubreuil

config.py and config.json are two top level configuration files in hierarchy. They are included in setup.py as data_files entries. When Simulation Generator is installed as a pip dependency, config.py and config.json are copied into the environment's top level directory, like this :
image

However, the data_files parameter for setuptools.setup(...) is deprecated. When executing a script that runs the simulation, the Python interpreters fails as it cannot find config.py and config.json. Those two files are currently used in simulator/runner/legacy.py and simulator/runner/simulation_runner.py.

I suggest the default configuration as constants in a Python module in the source hierarchy.

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