mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 18:58:01 +00:00 
			
		
		
		
	importlib refactor lf_wifi_capacity_test.py
This commit is contained in:
		| @@ -303,9 +303,9 @@ show_4way: 1 | ||||
| show_latency: 1 | ||||
|  | ||||
| """ | ||||
|  | ||||
| import sys | ||||
| import os | ||||
| import importlib | ||||
| import argparse | ||||
| import time | ||||
| import json | ||||
| @@ -315,11 +315,14 @@ if sys.version_info[0] != 3: | ||||
|     print("This script requires Python 3") | ||||
|     exit(1) | ||||
|  | ||||
| if 'py-json' not in sys.path: | ||||
|     sys.path.append(os.path.join(os.path.abspath('..'), 'py-json')) | ||||
| if 'lanforge-scripts' not in sys.path: | ||||
|     sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../"))) | ||||
|  | ||||
| from cv_test_manager import * | ||||
| from LANforge import LFUtils | ||||
| LFUtils = importlib.import_module("lanforge-scripts.py-json.LANforge.LFUtils") | ||||
| cv_test_manager = importlib.import_module("lanforge-scripts.py-json.cv_test_manager") | ||||
| cv_test = cv_test_manager.cv_test | ||||
| cv_add_base_parser = cv_test_manager.cv_add_base_parser | ||||
| cv_base_adjust_parser = cv_test_manager.cv_base_adjust_parser | ||||
|  | ||||
|  | ||||
| class WiFiCapacityTest(cv_test): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 erinnerim
					erinnerim