summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fedpkg.py2
-rw-r--r--src/fedpkg/__init__.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 19bf34b..a0d5920 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -207,7 +207,7 @@ if __name__ == '__main__':
# Let somebody override the username found in fedora cert
parser.add_argument('-u', '--user')
# Let the user define which path to look at instead of pwd
- parser.add_argument('--path', default = os.curdir,
+ parser.add_argument('--path', default = os.getcwd(),
help='Directory to interact with instead of current dir')
# Verbosity
parser.add_argument('-v', action = 'count',
diff --git a/src/fedpkg/__init__.py b/src/fedpkg/__init__.py
index 77bd658..17b9867 100644
--- a/src/fedpkg/__init__.py
+++ b/src/fedpkg/__init__.py
@@ -173,7 +173,7 @@ class PackageModule:
return subprocess.Popen(['rpm --eval %{_arch}'], shell=True,
stdout=subprocess.PIPE).communicate()[0].strip('\n')
- def __init__(self, path=os.curdir):
+ def __init__(self, path=os.getcwd()):
# Initiate a PackageModule object in a given path
# Set some global variables used throughout
self.path = path