mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
Revert "importlib refactor create_chamberview_dut.py"
This reverts commit aa2e67432b.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Note: To Run this script gui should be opened with
|
Note: To Run this script gui should be opened with
|
||||||
|
|
||||||
@@ -44,9 +45,9 @@ How to Run this:
|
|||||||
|
|
||||||
Output : DUT will be created in Chamber View
|
Output : DUT will be created in Chamber View
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import importlib
|
|
||||||
import argparse
|
import argparse
|
||||||
import time
|
import time
|
||||||
|
|
||||||
@@ -54,13 +55,11 @@ if sys.version_info[0] != 3:
|
|||||||
print("This script requires Python 3")
|
print("This script requires Python 3")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
if 'lanforge-scripts' not in sys.path:
|
if 'py-json' not in sys.path:
|
||||||
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../")))
|
sys.path.append(os.path.join(os.path.abspath('..'), 'py-json'))
|
||||||
|
|
||||||
cv_dut_profile = importlib.import_module("lanforge-scripts.py-json.cv_dut_profile")
|
from cv_dut_profile import cv_dut as dut
|
||||||
dut = cv_dut_profile.cv_dut
|
from cv_test_manager import cv_test as cvtest
|
||||||
cv_test_manager = importlib.import_module("lanforge-scripts.py-json.cv_test_manager")
|
|
||||||
cvtest = cv_test_manager.cv_test
|
|
||||||
|
|
||||||
|
|
||||||
class DUT(dut):
|
class DUT(dut):
|
||||||
|
|||||||
@@ -108,6 +108,8 @@ if sys.version_info[0] != 3:
|
|||||||
if 'lanforge-scripts' not in sys.path:
|
if 'lanforge-scripts' not in sys.path:
|
||||||
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
|
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../")))
|
||||||
|
|
||||||
|
# from cv_test_manager import cv_test
|
||||||
|
# from cv_test_manager import *
|
||||||
cv_test_manager = importlib.import_module("lanforge-scripts.py-json.cv_test_manager")
|
cv_test_manager = importlib.import_module("lanforge-scripts.py-json.cv_test_manager")
|
||||||
cv_test = cv_test_manager.cv_test
|
cv_test = cv_test_manager.cv_test
|
||||||
cv_add_base_parser = cv_test_manager.cv_add_base_parser
|
cv_add_base_parser = cv_test_manager.cv_add_base_parser
|
||||||
|
|||||||
Reference in New Issue
Block a user