ENH: allow code execution without editing (2 ways) #945
Idea: allow execution of code without the possibility of either the subject or experimenter inadvertently typing something that would end up in the script. See #943
Other use cases for -x option = programmatic invoking of python scripts using StandAlone's python (Craig Stark, users' list)
- new Coder pref can help prevent accidental modification of .py files - easier to use than command-line -x option - syntax highlighting turned off (black / white only) when in read-only mode - not feasible to do on a per-file basis (would need meta-data for each .py file), so use a user pref for all files - easy to reverse: change the pref & reload the file
Its not terribly laborious. You don't need to restart the app to stop the read-only feature. You do need to close the .py script, change the pref, and re-open the .py script. I am thinking that this feature is mainly intended to be used on testing-room computers, where things should stay read-only basically all the time. I don't think a menu item is needed for this, but happy to add one if you want it.