Aareon / Pyto

Python IDE for iOS with NumPy, Matplotlib, Pandas, SciPy and SciKit-Learn
https://pyto.app
MIT License
1 stars 0 forks source link

Fix error when using script_runner.py on iOS<14 #1

Open Aareon opened 3 years ago

Aareon commented 3 years ago

Running a Python module in Pyto from Run module (python -m) results in an error on iOS < 13. This patch adds a is_watch_script check before importing Lib/watch, as it requires the Lib/widgets module (available in iOS 14+).

A check could be added to Lib/watch.py before importing Lib/widgets to check if the current iOS is supported, but I don’t know how to do that.