diff --git a/volia/__init__.py b/volia/__init__.py index e69de29..463bd58 100644 --- a/volia/__init__.py +++ b/volia/__init__.py @@ -0,0 +1,11 @@ +""" 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 +sys.path.append(os.path.dirname(__file__)) diff --git a/volia/data.py b/volia/data.py index 5246e47..8261d81 100644 --- a/volia/data.py +++ b/volia/data.py @@ -1,7 +1,7 @@ import argparse import sys -from volia.utils import SubCommandRunner +from utils import SubCommandRunner # Main parser parser = argparse.ArgumentParser(description="manage files")