Created
March 13, 2015 19:09
-
-
Save samdmarshall/43bc322b66812f571f23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# my_module/ | |
# __init__.py | |
# Helpers/ | |
# __init__.py | |
# plist_helper.py | |
# Foo/ | |
# __init__.py | |
# foo.py | |
# Bar/ | |
# __init__.py | |
# bar.py | |
# Bazz/ | |
# __init__.py | |
# bazz.py | |
# | |
# From 'bazz.py' I want to import 'plist_helper.py', how do i do this? |
from ....Helpers import plist_helper
(but already told you this on IRC :D)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've attempted to do the first suggestion and I get back "ImportError: No module named my_module.Helpers.plist_helper", I would rather not do absolute path loading but everything else i've tried cannot find the top-level module.