summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index b8d47b22..4efe5ec5 100644
--- a/setup.py
+++ b/setup.py
@@ -18,10 +18,10 @@ def read(fname):
# Utility function to parse directories
def parse_dir(dirpath, extension=None):
if os.path.exists('.git'):
- files = shell.check_call('git ls-files %s' % dirpath).split('\n')
+ files = shell.check_output(['git', 'ls-files', dirpath]).split('\n')
files.remove('')
else:
- files = shell.check_call('find %s -type f' % dirpath).split('\n')
+ files = shell.check_output(['find', dirpath, '-type', 'f']).split('\n')
files.remove('')
if extension is None:
return files