fyrd icon indicating copy to clipboard operation
fyrd copied to clipboard

Auto import all functions in a file

Open MikeDacre opened this issue 7 years ago • 2 comments

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 avatar Oct 29 '17 20:10 MikeDacre

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 avatar Oct 29 '17 20:10 MikeDacre

Something like:

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

MikeDacre avatar Oct 29 '17 20:10 MikeDacre