Loading README.md +30 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,36 @@ There are a number to indicate location of the Griffin executable to PyGriffin. These will be preferentially used by PyGriffin in the order they are provided by the user and the user's compute environment. ### The `.pygriffin.rc` file The `.pygriffin.rc` file uses a configuration format commmonly adopted by Python modules for customization that is supported by a a parser in the Python standard library. Specifics on this format can be found [here](https://docs.fileformat.com/system/ini/). PyGriffin expects to find an `exec` section in this file containing the location of the Griffin executable and (optionally) the ISOXML executable. For example, a `.pygriffin.rc` file on a system with Grifin installed at `/home/griffin_project/` might look like: ``` [exec] griffin = /home/griffin_project/griffin-opt isoxml = /home/griffin_project/isoxml/isoxml-opt ``` To check that PyGriffin has discovered the correct executable, use the following commands in a Python interpreter: ```python import pygriffin pyg_config = pygriffin.PyGriffinConfig() print(pyg_config.griffin_exec) ``` This file can be updated to change the executables used by PyGriffin the next time the package is imported. ## Installing PyGriffin can be installed by using pip (`pip install .` from the repository's Loading Loading
README.md +30 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,36 @@ There are a number to indicate location of the Griffin executable to PyGriffin. These will be preferentially used by PyGriffin in the order they are provided by the user and the user's compute environment. ### The `.pygriffin.rc` file The `.pygriffin.rc` file uses a configuration format commmonly adopted by Python modules for customization that is supported by a a parser in the Python standard library. Specifics on this format can be found [here](https://docs.fileformat.com/system/ini/). PyGriffin expects to find an `exec` section in this file containing the location of the Griffin executable and (optionally) the ISOXML executable. For example, a `.pygriffin.rc` file on a system with Grifin installed at `/home/griffin_project/` might look like: ``` [exec] griffin = /home/griffin_project/griffin-opt isoxml = /home/griffin_project/isoxml/isoxml-opt ``` To check that PyGriffin has discovered the correct executable, use the following commands in a Python interpreter: ```python import pygriffin pyg_config = pygriffin.PyGriffinConfig() print(pyg_config.griffin_exec) ``` This file can be updated to change the executables used by PyGriffin the next time the package is imported. ## Installing PyGriffin can be installed by using pip (`pip install .` from the repository's Loading