aboutsummaryrefslogtreecommitdiffstats
path: root/python/mach_bootstrap.py
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2015-11-08 03:55:54 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2015-11-08 03:55:54 +0530
commitabf2dfea05dfb304af5424a7c51440a14865a169 (patch)
tree7b39079d7f2e75ffb69028d11c50fe241e462608 /python/mach_bootstrap.py
parent89852b9f91392db23ce7764fc74ee9836a531035 (diff)
parent4ff8d3ad9cea711ec77e2e4647128411d80af809 (diff)
downloadservo-abf2dfea05dfb304af5424a7c51440a14865a169.tar.gz
servo-abf2dfea05dfb304af5424a7c51440a14865a169.zip
Auto merge of #8394 - frewsxcv:virtualenv-spaces, r=Manishearth
Make virtualenv more tolerant of spaces in directory names Fixes #8390 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8394) <!-- Reviewable:end -->
Diffstat (limited to 'python/mach_bootstrap.py')
-rw-r--r--python/mach_bootstrap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/mach_bootstrap.py b/python/mach_bootstrap.py
index 67d8c236100..9f1bfd5f485 100644
--- a/python/mach_bootstrap.py
+++ b/python/mach_bootstrap.py
@@ -9,6 +9,7 @@ import platform
import subprocess
import sys
from distutils.spawn import find_executable
+from pipes import quote
SEARCH_PATHS = [
os.path.join("python", "mach"),
@@ -102,7 +103,7 @@ def _activate_virtualenv(topdir):
except (subprocess.CalledProcessError, OSError):
sys.exit("Python virtualenv failed to execute properly.")
- execfile(activate_path, dict(__file__=activate_path))
+ execfile(activate_path, dict(__file__=quote(activate_path)))
# TODO: Right now, we iteratively install all the requirements by invoking
# `pip install` each time. If it were the case that there were conflicting