AccessGrid.org

Prerequisites

Python Path

The AccessGrid Python module is installed in a non-standard location on all (most?) platforms. To run any code that uses the AccessGrid Python module, the path to this module must be included in the search path for Python modules.

OSX

For bash:

. /Applications/AccessGridToolkit3.app/Contents/Resources/setupenv.sh

For csh:

source  /Applications/AccessGridToolkit3.app/Contents/Resources/setupenv.sh

 

Inside the Application

Applications can also help locate the AccessGrid Python module using a utility module included with the AccessGrid. The following code will select version 3 of the AccessGrid and put the path to this version of the module on the path, before proceeding with the rest of the script.

import agversion
agversion.select(3)

This mechanism is used by the programs included with the Access Grid installers (for example, VenueClient, VenueManagement, VenueServer).

login or register to post comments