qpython
qpython copied to clipboard
Creating home screen shortcuts for scripts
Hi,
It's really useful to me to be able to run scripts from the home screen. There is a qpython widget that I can add, but it shows a cryptic "term shortcut" window when setting it up. No matter what I write in "find command", when I press the shortcut, I get an error: "python": error: only position independent executables (PIE) are supported.
Thanks, Noam
For the record: I managed to run my script like this. I wrote in the "add to dictionary" field (the one with "--example=a") this:
/data/user/0/org.qpython.qpy/files/bin/qpython-android5.sh /storage/emulated/0/qpython/scripts/my_script.py && exit
I left the first field empty.
In the script I wrote the line:
#qpy:qpyapp
You can see the first part of the line when running a shell from the QPython app, in case it is different between devices.