As per the title. I am coming from Rhino 7 and have multiple Aliases that point to python scripts in the format of ! _-RunPythonScript “PythonScriptName”
Rhino 9, for some reason, does not accept this format and requires the filename extension is present. So effectively, all of my Aliases that refer to python scripts are failing due to the lack of ".py"
I am able to change these, of course, but I am curious if this was an intentional change or a bug that needs to be reported?
Rhino 9 still adds .py to a script name typed without an extension. So ! _-RunPythonScript "PythonScriptName" looks for PythonScriptName.py, just as it did in Rhino 7.
What’s different is where it looks. Each Rhino version has its own scripts folder, and Rhino 9 searches its own:
Rhino 9 doesn’t search the Rhino 7 scripts folder (7.0\scripts). It also doesn’t search any extra folders you added through Rhino 7’s EditPythonScript options. If your scripts live in one of those places, Rhino 9 won’t find them by name alone.
When the name ends in .py, Rhino 9 also tries to find the file through the newer script engine. That’s why adding the extension works for you.
To keep your aliases as they are, copy or move the scripts into the Rhino 9 scripts folder above. Aliases like ! _-RunPythonScript "PythonScriptName" should then work without the extension.
The other option is to keep the scripts where they are and give the full path in each alias, for example ! _-RunPythonScript "C:\MyScripts\PythonScriptName.py".