changed .gitignore files from idea editor files
authorDan Klein <[email protected]>
Sun, 23 Aug 2015 15:12:05 +0000 (18:12 +0300)
committerDan Klein <[email protected]>
Sun, 23 Aug 2015 15:12:05 +0000 (18:12 +0300)
.gitignore
scripts/automation/trex_control_plane/client/outer_packages.py

index 249f61b..5b956fd 100644 (file)
@@ -43,3 +43,6 @@ scripts/bp-sim-*
 ehthumbs.db
 Thumbs.db
 
+# IDE/ Editors files #
+######################
+.idea/
index a7c34e4..092cad2 100755 (executable)
@@ -1,29 +1,33 @@
 #!/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