(go to: table of contents, index)
The original version of GETPATH.C uses the path to the executable for further
lookup. This code has been removed from VMS__GETPATH.C. Several attempts are
made to find special 'landmark' files ("string.py") - this code as been
removed, too.
Two directories are needed:
A symbol or logical name "PYTHON_LIBRARY" is checked for the prefix.
Python's 'sys' module will contain a string named 'prefix'. Its value
will also be appended to the 'path' as shown below.
Note: the file specification must be in POSIX notation as shown below.
(Currently,) you cannot specify a list of file specifications (e.g.:
"/spec1:/spec2").
A symbol or logical name "PYTHON_SHARE" is checked for the exec_prefix.
Python's 'sys' module will contain a string named 'exec_prefix'. Its value
is currently (19-JUL-1998) NOT appended to 'sys.path'.
path support
Python uses several 'environment variables' which tell the executable where
the other files (so called libraries) are located.
$ define PYTHON_LIBRARY "/DKA100/PYTHON/PYTHON-1_5_1/LIB"
$ python
Python 1.5.1 (V001P2, Jun 22 1998, 20:34:34) [DECC] on vms
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
portions Copyright 1996-1998 Uwe Zessin
>>> print sys.prefix
/DKA100/PYTHON/PYTHON-1_5_1/LIB
>>>
@@ explain PYTHONPATH ...