Importing a module from an upper directory within a package when the package is imported from another place
问题 I have a project that I am having problems with. kreveik. |-- classes | |-- baseclasses.py | |-- family.py | |-- __init__.py | `-- network.py |-- family | |-- __init__.py | `-- killer.py `-- genetic `-- __init__.py This is the relevant part of the project. The traceback explains me what I was trying to do in my code. /home/mali/workspace/kreveik/<ipython-input-7-ec5770ffbdf2> in <module>() ----> 1 import kreveik /home/mali/workspace/kreveik/kreveik/__init__.py in <module>() ----> 1 import