Skip to content

Commit

Permalink
shell=True on win32 finds the JDK (Fix #7734)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Jan 13, 2012
1 parent 6b4b44b commit f82eb76
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@

def popen(args, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE):
copy = os.environ.copy()
return subprocess.Popen(args, env=copy, stdin=stdin, stdout=stdout, stderr=stderr)
shell = (sys.platform == "win32")
return subprocess.Popen(args,
env=copy,
stdin=stdin,
stdout=stdout,
stderr=stderr,
shell=shell)


def execute(args):
Expand Down

0 comments on commit f82eb76

Please sign in to comment.