Import module in IronPython

Anyone knows how to import module in IronPython and where to put module file?

OpenBullet2\Lib and OpenBullet2\Lib\site-packages

Note: Ironpython is using python 2. Make sure to install those versions of modules.

1 Like

image
nope sth went wrong with importing module in IronPython

check my video in code section

You need to add a snippet like this before the imports.

import sys
sys.path.append(r"<PATH TO LIBS>")

Otherwise ironpython doesn’t know where to look since it has no path variables.

1 Like