VAPOR GUI users may define a Python startup script.  The startup script will be executed prior to any of the Python variable-defining scripts.  This is useful for setting up the default Python environment.  For example the startup script can import modules that are frequently used or can define methods and constants that are used often.  The startup script is saved with the VAPOR session, and will be restored when that session is loaded.

To define a Python startup script, click on the Edit menu, and select "Edit Python Startup Script".  Type in the Python statements and then click "Apply".  It may be useful to first click "Test" to verify that your startup script has no syntax errors.

There is also a Python System Startup script that is pre-installed in the VAPOR share directory, at $(VAPOR_HOME)/share/python/pythonSystemStartup.py .  This script will be executed before any other python scripts.  By default, this script contains only the following two lines:

from numpy import *

from vapor_utils import *

Users may modify the Python system startup script to specify Python statements that will be executed on the user's current system.