R8: _-RunPythonScript file.py doesn't check in added File Search Path

Hi, I added a path where I have our python scripts in the File Search Path to make it easier to update all the scripts we use for our users. But it seems Rhino isn’t checking this path if I try to run a python script from a button.

Example of button content that doesn’t work:

_-RunPythonScript "_EPSG_SET.py"

But this works:

_-RunPythonScript "D:\Dropbox\mypath\_EPSG_SET.py"

Could you add Search Paths to where RunPythonScript searches please?

@eirannejad is this for you?

Is it python 3 or python 2?

This one is python 3.

But how does that matter?

@Holo I looked at the code and the _-RunPythonScript command looks at the IronPython search paths to find the scripts. Since that is only modifiable from the legacy EditPythonScript I think I need to make this work with File Search Paths in rhino settings. I created this YT and will update the command

RH-78659 RunScriptCommand only searches for python files inside IronPython plugin search paths

2 Likes

Thanks for that 2nd option. The problem is still here

@Pierrafee Which Rhino version?