summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.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.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.py')
-rwxr-xr-xsrc/fedpkg.py2
1 files changed, 1 insertions, 1 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',