IronPythonの.pyなどの標準モジュールの読み込み概要ここでは、IronPythonの標準ライブラリを読み込む方法が記載されています。 sys.path.append(...)で、IronPythonのlibフォルダの場所を足す
IronPythonのモジュールをロードする場合には、 #PY = loaddll( hidemarudir + @"\hmPy.dll" ); #_ = dllfuncw( #PY, "DoString", R"PY( import sys sys.path.append(r"C:\usr\ironpython\lib"); import random ret = random.random(); hm.debuginfo(ret); )PY" ); freedll( #PY ); |