During the course of my python program, I have generated the following string
"D:\something_else.py"
Lets say there are other resources in D: that something_else.py requires.
How would I go about running something_else.py from my code, which let's say is being run from C:\Users\Someone\Desktop?
Right now I'm using the following:
from subprocess import call
call(["python",pythloc])
This gives me an error as it's able to find only something_else.py and is unable to find the other resources that something_else.py needs which are in the same folder as something_else.py
__init__.pycwdincall:call([xxx], cwd="D:\\")