From: Andrey "Zed" Zaikin Date: Tue, 24 Apr 2018 11:50:02 +0000 (+0300) Subject: fix: AttributeError: module 'os' has no attribute 'cwd' X-Git-Tag: v18.07-rc1~373 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=68e2ffb3ef7e1db908fc874e733d0f4db18e0cb5 fix: AttributeError: module 'os' has no attribute 'cwd' Change-Id: I1c49a12ef7fa7bd0046f1a420b01c1654b6d21ec Signed-off-by: Andrey "Zed" Zaikin --- diff --git a/src/vpp-api/python/vpp_papi.py b/src/vpp-api/python/vpp_papi.py index 5fa82a30acb..7305ef38763 100644 --- a/src/vpp-api/python/vpp_papi.py +++ b/src/vpp-api/python/vpp_papi.py @@ -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):