From d9aaf9fc8b9022b11912861ff7614a82f09dbadb Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 5 Jan 2010 15:17:14 -0800 Subject: Fix execution without --path being passed os.path.curdir() just returns "." and some things don't like that. --- src/fedpkg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fedpkg/__init__.py') 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 -- cgit