Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
isaak yansane-sisk
slapos.buildout
Commits
d09f9f55
Commit
d09f9f55
authored
Aug 23, 2012
by
Adam Groszer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows: subprocess.Popen will quote itself if needed
parent
5b83b600
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/zc/buildout/testing.py
src/zc/buildout/testing.py
+2
-3
No files found.
src/zc/buildout/testing.py
View file @
d09f9f55
...
@@ -151,8 +151,7 @@ def _runsetup(setup, executable, *args):
...
@@ -151,8 +151,7 @@ def _runsetup(setup, executable, *args):
setup = os.path.join(setup, '
setup
.
py
')
setup = os.path.join(setup, '
setup
.
py
')
d = os.path.dirname(setup)
d = os.path.dirname(setup)
args = [zc.buildout.easy_install._safe_arg(arg)
args = list(args)
for arg in args]
args.insert(0, '
-
q
')
args.insert(0, '
-
q
')
env = dict(os.environ)
env = dict(os.environ)
if executable == sys.executable:
if executable == sys.executable:
...
@@ -163,7 +162,7 @@ def _runsetup(setup, executable, *args):
...
@@ -163,7 +162,7 @@ def _runsetup(setup, executable, *args):
try:
try:
os.chdir(d)
os.chdir(d)
p = subprocess.Popen(
p = subprocess.Popen(
[
zc.buildout.easy_install._safe_arg(executable)
, setup] + args,
[
executable
, setup] + args,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
close_fds=MUST_CLOSE_FDS, env=env)
close_fds=MUST_CLOSE_FDS, env=env)
out = p.stdout.read()
out = p.stdout.read()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment