adding paths for local dev

This commit is contained in:
Gleb Boushev
2020-12-11 20:10:59 +03:00
parent d60487662f
commit b2db35d897

View File

@@ -7,8 +7,14 @@ import logging
import argparse
from time import sleep, gmtime, strftime
from unittest.mock import Mock
# if you lack __init__.py in this directory this import will fail
# the below hack is only needed for local dev
# This should be replaced with a module and added to dockerfile
import sys
for folder in 'py-json','py-scripts':
if folder not in sys.path:
sys.path.append(f'../lanforge/lanforge/{folder}')
from LANforge.LFUtils import *
from sta_connect2 import StaConnect2