I have a program 'a.py' which start with:
import XXX
The import works perfectly and a.py runs fine.
Then I wrote a program 'b.py' which calls 'a.py' to run continuously. It looks like this:
import os
def main():
return os.system("a.py")
c=main()
while(c):
c=main()
The I got the error says that 'Import error: no module named XXX'
Can anyone please tell me what's wrong?
Both a.py and b.py are in the same folder.