summaryrefslogtreecommitdiffstats
path: root/src/fedpkg/__init__.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-01-05 15:17:14 -0800
committerJesse Keating <jkeating@redhat.com>2010-01-05 15:17:14 -0800
commitd9aaf9fc8b9022b11912861ff7614a82f09dbadb (patch)
treecd14bd0fa07e87d418a3b20c8be1843b6c5749cc /src/fedpkg/__init__.py
parent43a77df14559863261b6d95dcd4d08eb07f7ff07 (diff)
downloadfedora-packager-d9aaf9fc8b9022b11912861ff7614a82f09dbadb.tar.gz
fedora-packager-d9aaf9fc8b9022b11912861ff7614a82f09dbadb.tar.xz
fedora-packager-d9aaf9fc8b9022b11912861ff7614a82f09dbadb.zip
Fix execution without --path being passed
os.path.curdir() just returns "." and some things don't like that.
Diffstat (limited to 'src/fedpkg/__init__.py')
-rw-r--r--src/fedpkg/__init__.py2
1 files changed, 1 insertions, 1 deletions
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