-
Notifications
You must be signed in to change notification settings - Fork 11
How to use iRIC GUI functions from python
Python module named iric is bundled with iRIC pre-post-processor GUI. Currently, you can use only very small part of iRIC GUI from python scripts. This page describe how you can make it possible to use iric module.
#Environments supported
Currently iric Python module is built only for Python 3.5 64bit on Windows.
Download Python installer for windows from Python web site. Please note that you have to download and install x86-64 version, not x86 version.
iric.py, _iric.pyd exists inside pythonmodule sub-folder in iRIC GUI folder. It is typically C:\Users(Username)\iRIC\guis\prepost\pythonmodule.
Copy these two files into (Your_python_install_path)\Lib\site-packages folder.
From Control Panel, go to "System" -> "System Detail" -> "Environment variables", and add your iRIC GUI path to PATH. It is typically "C:\Users(Username)\iRIC\guis\prepost".
To avoid problems, you'd better add as the first of the path settings, to avoid using invalid DLL, that causes problems.
As Environment Variable, add "QT_QPA_PLATFORM_PLUGIN_PATH". It should be the "platforms" folder in iRIC GUI installation path. It is typically "C:\Users(Username)\iRIC\guis\prepost\platforms"
Now you are done!
You can use iric module from python like below:
import iric