Commit 996c381dffcf11e0468d3d98463ce35637a06458

Authored by quillotm
1 parent ef499b777c
Exists in master

New init files in order to take into account the core when installing volia via setup.py

Showing 1 changed file with 2 additions and 1 deletions Inline Diff

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