Following the update to Version 8.5.24051.15001, opening the ScriptEditor switches the open file to ReadOnly mode. This prevents the file from being saved, prompting the user to “Save As”. This only affects the currently open file when the ScriptEditor is opened.
After saving to a newly-named file, saving is possible again. However, as long as Rhino is open, the original ReadOnly file is unable to be deleted, giving the warning “The action can’t be completed because the file is open in Python.” Closing Rhino makes deleting the file possible.
Current Version: Version 8 SR5 (8.5.24051.15001, 2024-02-20)
Platform: Windows 11
I suspect what is happening is that the initialization of the Python runtime creates some kind of lock on the currently open file, holding that lock until Rhino closes. This didn’t happen in Rhino 8.4. It’s really annoying.