Recently , i wrote the following code to run a python file 'file1.py' from another python code. I am working on raspberry pi (with raspian )
Python code:
import subprocess
subprocess.Popen(['python','./file1.py'])
print 'Done'
Output:
Done
file1.py does not executed,No other response on screen
file1.py
a=5
a=a+5
print(a)
I have searched for the somewhat same question ,but it's not working for me. Please help!