Re: os.system vs subrocess.call

2019-11-28 Thread Stephan Lukits
> On 28. Nov 2019, at 12:05, Ulrich Goebel wrote: > > Hi, > > I have to call commands from inside a python skript. These commands are in > fact other python scripts. So I made > >os.system('\.Test.py') > > That works. > > Now I tried to use > >supprocess.call(['.\', 'test.py']) [

Re: os.system vs subrocess.call

2019-11-28 Thread Pieter van Oostrum
Ulrich Goebel writes: > Hi, > > I have to call commands from inside a python skript. These commands are > in fact other python scripts. So I made > > os.system('\.Test.py') > > That works. In a string \. is the same as . So this should execute the command '.Test.py'. Is that really what you

Re: os.system vs subrocess.call

2019-11-28 Thread Ulrich Goebel
Sorry for the wrong spelling. In fact subprocess.call('./Test.py') works. The raising error was my error too, using ['./', 'Test.py'] instead of './Test.py' Sorry... Am 28.11.19 um 11:05 schrieb Ulrich Goebel: Hi, I have to call commands from inside a python skript. These commands are

Re: os.system vs subrocess.call

2019-11-28 Thread Peter Otten
Ulrich Goebel wrote: > Hi, > > I have to call commands from inside a python skript. These commands are > in fact other python scripts. So I made > > os.system('\.Test.py') > > That works. > > Now I tried to use > > supprocess.call(['.\', 'test.py']) Remember to use cut and paste fo

os.system vs subrocess.call

2019-11-28 Thread Ulrich Goebel
Hi, I have to call commands from inside a python skript. These commands are in fact other python scripts. So I made os.system('\.Test.py') That works. Now I tried to use supprocess.call(['.\', 'test.py']) That doesn't work but ends in an error: Traceback (most recent call last):