Skip to content

Commit

Permalink
Exit mach with an error when building on a path with spaces. Fixes se…
Browse files Browse the repository at this point in the history
  • Loading branch information
Suvish Varghese Thoovamalayil committed Feb 11, 2016
1 parent 99cf471 commit e5c11aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/mach_bootstrap.py
Expand Up @@ -149,6 +149,13 @@ def _activate_virtualenv(topdir):
def bootstrap(topdir):
topdir = os.path.abspath(topdir)

# We don't support paths with spaces for now
# https://github.com/servo/servo/issues/9442
if ' ' in topdir:
print('Cannot run mach in a path with spaces.')
print('Current path:', topdir)
sys.exit(1)

# Ensure we are running Python 2.7+. We put this check here so we generate a
# user-friendly error message rather than a cryptic stack trace on module
# import.
Expand Down

0 comments on commit e5c11aa

Please sign in to comment.