You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some functions I wanted to get out of the build.py file because they were getting bigger than the build script. I tried importing, e.g. import foo, but this line in pynt prevents it:
This is some weird loading that allows loading from pip installed, but not from code in the same directory as build.py.
The above line is also deprecated in python 3.
Here is a nasty hack to get around it.
sys.path.append(os.path.join(os.path.dirname(__file__), '.'))
from build_utils import check_is_aws, skip_if_no_change, execute_with_environment
I don't know the motivation was for using imp.load_source, but it makes pynt more difficult to use. When I get a chance I'll review navio's version & see if it has been solved there.
The text was updated successfully, but these errors were encountered:
I have some functions I wanted to get out of the build.py file because they were getting bigger than the build script. I tried importing, e.g. import foo, but this line in pynt prevents it:
This is some weird loading that allows loading from pip installed, but not from code in the same directory as build.py.
The above line is also deprecated in python 3.
Here is a nasty hack to get around it.
I don't know the motivation was for using imp.load_source, but it makes pynt more difficult to use. When I get a chance I'll review navio's version & see if it has been solved there.
The text was updated successfully, but these errors were encountered: