Graphics Reference
In-Depth Information
For those running Mac OS X, your wrapper script will also be called run.sh , and will
contain the following:
export PYTHONPATH="$PYTHONPATH:/Applications/QGIS.app/
Contents/Resources/python"
export DYLD_FRAMEWORK_PATH="/Applications/QGIS.app/Contents/
Frameworks"
export QGIS_PREFIX="/Applications/QGIS.app/Contents/
Resources"
python lex.py
Notice that for Mac OS X and Linux, we have to set the framework or library paths. This
allows the PyQGIS Python wrappers to find the underlying C++ shared libraries that they
are based on.
Tip
If you are running under Linux or Mac OS X, you'll also have to make your wrapper
script executable. To do this, type chmod +x run.sh into the bash shell or terminal
window.
Once you have created your shell script, try running it. If all goes well, your PyQt applica-
tion should start up and display a blank window, like the following:
Search WWH ::




Custom Search