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

kw_globals SCRIPT_BASE_DIR should be computed within the module #50

Open
keithstellyes opened this issue Sep 17, 2017 · 0 comments
Open

Comments

@keithstellyes
Copy link
Owner

Right now, the executable program is responsible for setting the SCRIPT_BASE_DIR by computing it, however instead of needing to compute it we could simply have, in the kw_globals, and the executable would only need to worry about including the kw_globals so the environment for scripts and such is set

# kw_globals.py
SCRIPT_BASE_DIR = os.path.abspath(os.path.dirname(__file__))
if SCRIPT_BASE_DIR not in os.path:
    os.path.append(SCRIPT_BASE_DIR)
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