Neil Hodgson
unread,Mar 12, 2020, 12:45:50 AM3/12/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scite-i...@googlegroups.com
Much of the Python world is now using Python 3.x but on Unix, SciTE runs “python” which will often be Python 2.7 instead of “python3”. Changing this to “python3” would help users whose scripts may fail when run with the old interpreter. Those who need to run Python 2.x can override the setting in user or local properties as appropriate.
These would be the new global settings:
if PLAT_GTK
command.go.*.py=python3 -u "$(FileNameExt)"
if PLAT_MAC
command.go.*.py=python3 -u "$(FileNameExt)”
On Windows, “python” commonly runs the most recent version. However, PEP 397 added the “py” and “pyw” launchers which understand shbang lines (like “#!/usr/bin/env python3”) and interprets them as would be done on Unix. Therefore, these launchers should be used instead of “python” directly.
if PLAT_WIN
command.go.*.py=pyw -u "$(FileNameExt)"
command.go.subsystem.*.py=1
command.go.*.pyw=pyw -u "$(FileNameExt)"
command.go.subsystem.*.pyw=1
Neil