| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1351,7 +1351,9 @@ def configure_inspector(o): | |||
| 1351 | 1351 | o['variables']['v8_enable_inspector'] = 0 if disable_inspector else 1 | |
| 1352 | 1352 | ||
| 1353 | 1353 | ||
| 1354 | - def get_bin_override(): | ||
| 1354 | + def make_bin_override(): | ||
| 1355 | + if sys.platform == 'win32': | ||
| 1356 | + raise Exception('make_bin_override should not be called on win32.') | ||
| 1355 | 1357 | # If the system python is not the python we are running (which should be | |
| 1356 | 1358 | # python 2), then create a directory with a symlink called `python` to our | |
| 1357 | 1359 | # sys.executable. This directory will be prefixed to the PATH, so that | |
@@ -1460,7 +1462,8 @@ if options.prefix: | |||
| 1460 | 1462 | ||
| 1461 | 1463 | config = '\n'.join(map('='.join, config.iteritems())) + '\n' | |
| 1462 | 1464 | ||
| 1463 | - bin_override = get_bin_override() | ||
| 1465 | + # On Windows there's no reason to search for a different python binary. | ||
| 1466 | + bin_override = None if sys.platform == 'win32' else make_bin_override() | ||
| 1464 | 1467 | if bin_override: | |
| 1465 | 1468 | config = 'export PATH:=' + bin_override + ':$(PATH)\n' + config | |
| 1466 | 1469 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments