Skip to content

Commit

Permalink
Fix test_setup.py for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
RazerM committed Oct 17, 2015
1 parent 50bac55 commit d5b2ebd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scripts/test_setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
#! /usr/bin/python
import subprocess
import os
import pip
import sys

def _execute(*args, **kwargs):
result = subprocess.call(*args, **kwargs)
if result != 0:
sys.exit(result)

if __name__ == '__main__':
python_version = sys.version_info

Expand All @@ -24,4 +19,5 @@ def _execute(*args, **kwargs):
else:
deps.append("Jinja2")
print("Setting up dependencies...")
_execute([os.path.join(os.path.dirname(sys.executable), "pip"), "install"] + deps, shell=False)
result = pip.main(["install"] + deps)
sys.exit(result)

0 comments on commit d5b2ebd

Please sign in to comment.