But I get the error IronPython.Runtime.Exceptions.ImportException: No module named myglobal
According to IronPython documentation the above should work (afaiu) as the file myglobal.py is located in the defined path.
Some suggestions I found on the web pointed out that IronPython.Modules.dll might not have been referenced, tried adding ref to that also with no luck importing.
Cannot import modules in IronPython (Umbraco 451)
Hi!
This might be an issue with the IronPython implementation. I tried importing modules in a python macro as such:
But I get the error IronPython.Runtime.Exceptions.ImportException: No module named myglobal
According to IronPython documentation the above should work (afaiu) as the file myglobal.py is located in the defined path.
Some suggestions I found on the web pointed out that IronPython.Modules.dll might not have been referenced, tried adding ref to that also with no luck importing.
Anyone else had any luck importing -py-files?
Regards
Jonas
See http://our.umbraco.org/forum/developers/extending-umbraco/11296-IronPython-lab
is working on a reply...