commit | c454079d57e6a953c53efc6b102c2eb05d9983ec | [log] [tgz] |
---|---|---|
author | macauley <macauleycheng@gmail.com> | Mon Aug 03 09:40:05 2015 +0800 |
committer | macauley <macauleycheng@gmail.com> | Mon Aug 03 09:40:05 2015 +0800 |
tree | 340c8707c5e3245570416fe8c994d94fca77a0d4 | |
parent | 68bd768af11923b7eeb37b903c06b85eca16b19d [diff] [blame] |
add sys path accton
diff --git a/oft b/oft old mode 100644 new mode 100755 index bb02815..bab5b47 --- a/oft +++ b/oft
@@ -33,6 +33,10 @@ # Running from source tree sys.path.insert(0, PY_SRC_DIR) +if os.path.exists(os.path.join(ROOT_DIR, 'accton')): + PY_ACCTON_DIR = os.path.join(ROOT_DIR, 'accton') + sys.path.insert(0, PY_ACCTON_DIR) + import oftest from oftest import config import oftest.ofutils