#!/router/bin/python\r
\r
-import sys,site\r
-import platform,os\r
+import sys\r
+import site\r
+import platform\r
+import os\r
\r
-CURRENT_PATH = os.path.dirname(os.path.realpath(__file__)) \r
+\r
+CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))\r
ROOT_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir)) # path to trex_control_plane directory\r
-PATH_TO_PYTHON_LIB = os.path.abspath(os.path.join(ROOT_PATH, 'python_lib')) \r
+PATH_TO_PYTHON_LIB = os.path.abspath(os.path.join(ROOT_PATH, 'python_lib'))\r
\r
\r
CLIENT_MODULES = ['enum34-1.0.4',\r
- # 'jsonrpclib-0.1.3',\r
- 'jsonrpclib-pelix-0.2.5',\r
- 'termstyle',\r
- 'rpc_exceptions-0.1'\r
- ]\r
+ 'jsonrpclib-pelix-0.2.5',\r
+ 'termstyle',\r
+ 'rpc_exceptions-0.1'\r
+ ]\r
+\r
\r
-def import_client_modules ():\r
+def import_client_modules():\r
sys.path.append(ROOT_PATH)\r
import_module_list(CLIENT_MODULES)\r
\r
-def import_module_list (modules_list):\r
+\r
+def import_module_list(modules_list):\r
assert(isinstance(modules_list, list))\r
for p in modules_list:\r
- full_path = os.path.join(PATH_TO_PYTHON_LIB, p)\r
- fix_path = os.path.normcase(full_path) #CURRENT_PATH+p)\r
+ full_path = os.path.join(PATH_TO_PYTHON_LIB, p)\r
+ fix_path = os.path.normcase(full_path) # (CURRENT_PATH+p)\r
site.addsitedir(full_path)\r
\r
import_client_modules()\r