forked from p15670423/monkey
Add parent path for python paths (for common code)
This commit is contained in:
parent
0e7423d72e
commit
cacb60b132
|
@ -6,6 +6,11 @@ import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
PARENT_PATH = os.path.dirname(BASE_PATH)
|
||||||
|
|
||||||
|
if PARENT_PATH not in sys.path:
|
||||||
|
sys.path.insert(0, PARENT_PATH)
|
||||||
|
|
||||||
if BASE_PATH not in sys.path:
|
if BASE_PATH not in sys.path:
|
||||||
sys.path.insert(0, BASE_PATH)
|
sys.path.insert(0, BASE_PATH)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue