-3

I'm in this 1.py file, and I would like to execute the main.py at some point. I tried using:

import os
os.chdir("/storage/emulated/0/qpython/projects3/seila")
os.system("/storage/emulated/0/qpython/projects3/seila/main.py")

But the result indicated that the access was denied.

How can I solve this?

Hogstrom
  • 3,581
  • 2
  • 9
  • 25
  • if you are going to import this 'main.py' instead of using os you can just do import main – Haoyang Song Nov 15 '18 at 00:18
  • The path makes it look like the script is in an android device, are you trying to run the script on the device from a computer or something like that? please give as much information as you can about the problem. – vlizana Nov 15 '18 at 01:52
  • Please provide more information about your problem and what steps you have performed to solve till now. – amulya349 Nov 15 '18 at 04:58
  • I am using qpython, an Android app – Naze 00 Nov 15 '18 at 13:18

1 Answers1

0

I Just user the "import" and It worked. Thank you all for the Help.