| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d4b3b63 commit ac1beb0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1325,7 +1325,9 @@ def get_bin_override(): | |||
| 1325 | 1325 | # sys.executable. This directory will be prefixed to the PATH, so that | |
| 1326 | 1326 | # other tools that shell out to `python` will use the appropriate python | |
| 1327 | 1327 | ||
| 1328 | - if os.path.realpath(which('python')) == os.path.realpath(sys.executable): | ||
| 1328 | + which_python = which('python') | ||
| 1329 | + if (which_python and | ||
| 1330 | + os.path.realpath(which_python) == os.path.realpath(sys.executable)): | ||
| 1329 | 1331 | return | |
| 1330 | 1332 | ||
| 1331 | 1333 | bin_override = os.path.abspath('out/tools/bin') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments