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

Auto import all functions in a file #81

Open
MikeDacre opened this issue Oct 29, 2017 · 2 comments
Open

Auto import all functions in a file #81

MikeDacre opened this issue Oct 29, 2017 · 2 comments

Comments

@MikeDacre
Copy link
Owner

When being run from a file, need to run sys.path.append(file); from file import *; for function in file (including private) import function

@MikeDacre
Copy link
Owner Author

This used to work, but it isn't working with the make_alleles.py script (outside this project) right now. Not sure why.

High priority.

@MikeDacre
Copy link
Owner Author

Something like:

syspaths=[_os.path.dirname(_os.path.abspath(__file__))]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant