Specifically, it does not quote the second
, which becomes
(but does not appear in
). If the interpreter has a space in the path, it becomes
, which affects the files that the script looks for.
This affects CPython interpreters that have spaces in their paths and
The workaround is to add quotes to the second
call at the end of PythonScraper.py:
"\"" + sys.executable + "\"",
"\"" + os.path.join(os.path.dirname(__file__), 'ExtensionScraper.py') + "\"",
'-', # providing __import__ name rather than a path
"\"" + os.path.join(outpath, pkg_name) + "\""