I have created a python script e.g. HelloWorld.py
.
Within this script it calls a second script GoodMorning.py
via exec(open("GoodMorning.py").read())
.
I have now created a .bat
file to run my HelloWorld.py
.
"C:\Users\myself\AppData\Local\Programs\Python\Python38-32\python.exe" "C:\Users\myself\Desktop\Test\HelloWorld.py"
pause
if I start the .bat file now it returns the error no such file or directory: GoodMorning.py
How can this be adjusted in order for the HelloWorld.py
script to properly be able to start the GoodMorning.py
script at the correct moment?
Do I have do make an adjustment in my HelloWorld.py
script or the .bat
file?