fix: AttributeError: module 'os' has no attribute 'cwd' 76/12076/2
authorAndrey "Zed" Zaikin <zed.0xff@gmail.com>
Tue, 24 Apr 2018 11:50:02 +0000 (14:50 +0300)
committerOle Trøan <otroan@employees.org>
Mon, 7 May 2018 12:26:24 +0000 (12:26 +0000)
Change-Id: I1c49a12ef7fa7bd0046f1a420b01c1654b6d21ec
Signed-off-by: Andrey "Zed" Zaikin <zed.0xff@gmail.com>
src/vpp-api/python/vpp_papi.py

index 5fa82a3..7305ef3 100644 (file)
@@ -221,7 +221,7 @@ class VPP():
             localdir = os.path.dirname(os.path.realpath(main.__file__))
         else:
             # use cwd if there is no calling script
-            localdir = os.cwd()
+            localdir = os.getcwd()
         localdir_s = localdir.split(os.path.sep)
 
         def dmatch(dir):