qpython-android / qpython.org

QPython contributor & sugguestion & question homepage
http://qpython.org
58 stars 11 forks source link

Error when launching console projects with spaces (you guys need to quote the path!) #88

Open MestreLion opened 9 years ago

MestreLion commented 9 years ago

If one create a console project (#qpy:console) with a space in the dirname (just like the examples are named WebApp Sample and Album Sample), QPython is unable to launch its main.py, because the full command is /data/data/com.hipipal.qpyplus/files/bin/qpython.sh /storage/emulated/0/com.hipipal.qpyplus/projects/Foo Bar/main.py, which is seen by qpython.sh as 2 arguments instead of 1 (the last one being Bar/main.py), and that causes IOError: file not found.

Quoting the project path is enough to prevent this silly bug from happening.

MestreLion commented 9 years ago

running QPython (Play 1.1.1), according to the About screen