FeResPost Web Site                     FeResPost Online User Manual

V.0.1 Accessing the Python extension

Typically, one imports the FeResPost Classes and Modules with a statement as:

    from FeResPost import *

Note however that it works only if the different environment variables have been initialized correctly. Typically, in our Windows examples, 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 you will initialize will have to be adapted to you peculiar installation, and to the version of Python you are using. See the description of ruby examples in chapter IV.0 for more explanations on the “PATH” variable definition.