Commit 035402d1 authored by Jim Fulton's avatar Jim Fulton

simplified code slightly

parent 73b3b3b2
......@@ -98,7 +98,6 @@ if find_links:
distribute_path = ws.find(
pkg_resources.Requirement.parse('distribute')).location
env = dict(os.environ, PYTHONPATH=distribute_path)
requirement = 'zc.buildout'
version = options.version
......@@ -135,7 +134,7 @@ if version:
cmd.append(requirement)
import subprocess
if subprocess.call(cmd, env=env) != 0:
if subprocess.call(cmd, env=dict(os.environ, PYTHONPATH=distribute_path)) != 0:
raise Exception(
"Failed to execute command:\n%s",
repr(cmd)[1:-1])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment