Add parent path for python paths (for common code)

This commit is contained in:
Itay Mizeretz 2018-02-27 14:03:50 +02:00
parent 0e7423d72e
commit cacb60b132
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,11 @@ import sys
import time
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:
sys.path.insert(0, BASE_PATH)