You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was surprised that the very common case of "run package module using sys.executable" isnt supported. i.e. [sys.executable, '-m', 'package']
It isnt the same as run_module_as_main, as invoking the real Python executable can be necessary to catch extra problems related to IO setup, esp LANG, PYTHONIOENCODING etc.
It is quite often done incorrectly, e.g. without quotes around sys.executable as I did above, which is usually ok on unix but often fails on Windows.
The text was updated successfully, but these errors were encountered:
Possibly/probably? want to use get_real_python_executable as part of this, and could also smartly only add the quotes when it is necessary, and leave them out when not beneficial.
I was surprised that the very common case of "run package module using sys.executable" isnt supported. i.e.
[sys.executable, '-m', 'package']
It isnt the same as
run_module_as_main
, as invoking the real Python executable can be necessary to catch extra problems related to IO setup, espLANG
,PYTHONIOENCODING
etc.It is quite often done incorrectly, e.g. without quotes around
sys.executable
as I did above, which is usually ok on unix but often fails on Windows.The text was updated successfully, but these errors were encountered: