Jan-20-2023, 02:20 PM
Hi,
I'm trying to run an executable script (thanks to chmod +x) but located in another directory; whatever I do, it is running in the current directory i.e. where the python file is: what am i missing? I've chosen
Thanks for your comments and advices
Paul
I'm trying to run an executable script (thanks to chmod +x) but located in another directory; whatever I do, it is running in the current directory i.e. where the python file is: what am i missing? I've chosen
suprocess.Popen
+wait()
to be sure all the script has been run prior doing anything else.Thanks for your comments and advices
Paul
MyScrip = 'Script.sh' # chmod +x Script.sh RunScrip = subprocess.Popen(['sh', NewPath + '/' + MyScrip ]) RunScrip.wait()