[Tutor] Windows Linux Popen
Matthew Ngaha
chigga101 at gmail.com
Thu Jun 27 17:32:10 CEST 2013
On Thu, Jun 27, 2013 at 1:41 PM, eryksun <eryksun at gmail.com> wrote:
> The error is telling you that Windows can't find "python3". The exe is
> named python.exe on Windows, not python3.exe, and it will have to be
> on your system PATH to be invoked like that. If you want to run the
> script with the current interpreter, you can use sys.executable. For
> example:
>
> >>> subprocess.Popen(
> ... [sys.executable, '-c', r'print("spam")']).wait()
> spam
> 0
i really don't know what to say. no one on irc could resolve my issue
and in 1 go you spot where i went wrong. The small change of making
'python3', 'python' has fixed the issue. Thanks you very much:)
More information about the Tutor
mailing list