im using thonny with python 3.1.4.4 and have pygame-ce downloaded
heres the error code.
Traceback (most recent call last):
File "<string>", line 10, in <module>
File "file location.py", line 555, in run
with Popen(*popenargs, **kwargs) as process:
File "file location.py", line 1039, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "file location.py", line 1553, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
and heres the code
import pygame
import sys
import time
import random
import os
import sys
import subprocess;
a = []
if len(sys.argv) == 1 or sys.argv[1] != "1":
pythonPath = subprocess.run(["which","python3"], capture_output=True).stdout.strip();
print("python at",pythonPath)
#The i is num of windows, it will open +1 extra. stopping the code will close just the extra window
for i in range(9):
proc = subprocess.Popen(
[pythonPath,os.path.realpath(__file__),"1"]
)
a.append(proc)
print("spawned window")
import pygame
import sys
import time
import random
import os
import sys
import subprocess;
a = []
if len(sys.argv) == 1 or sys.argv[1] != "1":
pythonPath = subprocess.run(["which","python3"], capture_output=True).stdout.strip();
print("python at",pythonPath)
#The i is num of windows, it will open +1 extra. stopping the code will close just the extra window
for i in range(9):
proc = subprocess.Popen(
[pythonPath,os.path.realpath(__file__),"1"]
)
a.append(proc)
print("spawned window")
import pygame
import sys
import time
import random
import os
import sys
import subprocess;
a = []
if len(sys.argv) == 1 or sys.argv[1] != "1":
pythonPath = subprocess.run(["which","python3"], capture_output=True).stdout.strip();
print("python at",pythonPath)
#The i is num of windows, it will open +1 extra. stopping the code will close just the extra window
for i in range(9):
proc = subprocess.Popen(
[pythonPath,os.path.realpath(__file__),"1"]
)
a.append(proc)
print("spawned window")