summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 6e8c4c4b..4acb9a6c 100644
--- a/setup.py
+++ b/setup.py
@@ -61,8 +61,9 @@ class GenerateResources(build):
(path, ' '.join(command)))
with open(os.path.join(target_dir, filename), 'w') as f:
+ cwd = os.path.dirname(__file__) or '.'
p = subprocess.Popen(command,
- cwd=os.path.dirname(__file__),
+ cwd=cwd,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
o = p.communicate()