Hi @eirannejad,
I only started playing with the ScriptEditor
to try and create a plugin, but I ran into an issue when adding IronPython 2 scripts that were created outside of the ScriptEditor
.
Let’s say I have a scirpt
print "test"
that I am adding the IronPython 2 script like this:
the ScriptEditor recognises the script as a python 3 script because it is missing the tag #! python 2
. Also, adding the tag after the script has been added does nothing. I need to save the script with the tag before it is loaded into the ScriptEditor.
I would recommend that when loading an IronPython2 script into the ScriptEidor, that it appends that tag #! python 2
to the start of the script if it does not already exist.
Thanks!