Blame view
volia/__init__.py
384 Bytes
e200c0b6f
|
1 2 3 4 5 6 7 8 9 10 |
""" Just a simple way to import relative modules when calling modules with the option -m exemple : python -m volia.script if script import a module in the same namespace this will not work because python will try to find a module in the directory of execution, not those of the module file. """ import sys import os |
996c381df
|
11 12 |
sys.path.append(os.path.dirname(__file__)) |