Making it so that lanforge-scripts can work if the repository isn't named exactly the same way

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-09-17 15:29:15 -07:00
parent b8fa4377a7
commit 36400e003d
125 changed files with 572 additions and 578 deletions

View File

@@ -20,10 +20,10 @@ if sys.version_info[0] != 3:
exit(1)
if 'py-json' not in sys.path:
sys.path.append(os.path.join(os.path.abspath('..'), 'py-json'))
sys.path.append(os.path.join(os.path.abspath('..'), 'py-json'))
if 'py-dashboard' not in sys.path:
sys.path.append(os.path.join(os.path.abspath('..'), 'py-dashboard'))
sys.path.append(os.path.join(os.path.abspath('..'), 'py-dashboard'))
import argparse
from LANforge import LFUtils