Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install the installer scripts into the Conda environment #684

Open
nathanlcarlson opened this issue Nov 27, 2018 · 0 comments
Open

Install the installer scripts into the Conda environment #684

nathanlcarlson opened this issue Nov 27, 2018 · 0 comments
Assignees

Comments

@nathanlcarlson
Copy link
Contributor

nathanlcarlson commented Nov 27, 2018

The goal is to be able to have the installer control scripts in the path when the installer's conda environment is activated.

@William-Hill @sashakames
This is going to be a little more complicated than initially thought as nearly every module has this line declaring a global config variable:

with open(os.path.join(os.path.dirname(__file__), 'esg_config.yaml'), 'r') as config_file:
    config = yaml.load(config_file)

When the installer is "installed" into the environment (via python setup.py install) the variable __file__ is not what is expected to be and the esg_config.yml will not be found.

Additionally, this is not the only use of __file__ so this is likely not the only error case.

@nathanlcarlson nathanlcarlson self-assigned this Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant