ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.94k stars 892 forks source link

How to run .py file #2225

Open Farmander opened 1 year ago

Farmander commented 1 year ago

Hello, I have a problem when starting the file, it always looks for the path through /root how to change this path or how to add your .py file to root to run it. (I do it on iOS because of this and such problems)

Тhanks in advance for your help

yoavmlotok commented 1 year ago

You can use the files app on your phone in order to move the .py file into your /root directory and use python3 to then run it

montipls commented 11 months ago

if you know which directory you have your file in, you can cd into it, and then run it using python3 file.py. Alternatively, you can run it using the full path: python3 /home/folder/file.py