FeResPost Web Site                     FeResPost Online User Manual

V.0.1 Accessing the Python extension

Typically, the FeResPost Classes and Modules are imported with a statement such as:

    from FeResPost import *

Note however that it works only if the different environment variables have been initialized correctly. Typically, this is done through the batch files that are used to launch the example scripts, and the following variables are generally initialized:

    set LIB=
    set INCLUDE=
    set PYTHONPATH=C:/Users/ferespost/Documents/SRC/OUTPUTS/PYTHON/PYTHON_35
    set PYTHONINSTALLDIR=C:/NewProgs/PYTHON/PYTHON_35
    set REDISTRPATH=C:/Users/ferespost/Documents/SRC/OUTPUTS/REDISTR
    set PATH=%PYTHONINSTALLDIR%;%REDISTRPATH%;C:/Windows/System32

Of course, the different paths will have to be adapted to the particular installation and to the version of Python being used. See the description of ruby examples in Chapter IV.0 for more explanations on the “PATH” variable definition.