Hi all,
I’ve been using the StartAtomEditorListener command on mac with great success, running scripts written in vscode and triggering rhino scripts from an external application.
My current method is this:
#external python3
import requests, json
myobj = json.dumps({"FileName":filepath})
url = 'http://localhost:8080/runpythonscriptfile'
x = requests.post(url, data=myobj)
where “filepath” is the path of the ironpython file I want to run in rhino.
However, I can’t find any documentation on how Rhino receives the http post request.
So I am asking here: Is there a way to add an argument to the ironpython script when run?
Maybe in a similar fashion to the shell command python myfile.py arg1 arg2
?
And respective access via sys.argv
Thanks,
T