Skip to content

Trouble running script in spawed window #8979

Closed Answered by rokm
wilmer-suarez-simplisafe asked this question in Help
Discussion options

You must be logged in to vote

That FileNotFoundError is probably raised by

call("clear" if system() == "Darwin" else "cls")

because cls is not a program on Windows, but a shell command:

>>> import subprocess
>>> subprocess.call('cls')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\Users\Rok\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\Rok\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "c:\Users\Rok\AppData\Local\Programs\Python\Python312\Lib\subpro…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wilmer-suarez-simplisafe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants