Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC

Function import

import fileName

Executes Tea code read from a file.

Parameters:
fileName - String representing a pathname relative to one of the Tea library directories.
Returns:
The result of the last statement executed.

The Tea code is only executed the first time the import function is called.

The global variable TEA_LIBRARY should define a list of strings representing URLs where fileName is searched. If TEA_LIBRARY is undefined or not a list, fileName is searched in the current directory. If TEA_LIBRARY is an empty list, the file is never searched and import will fail. If two different fileName are mapped into the same full path name, they are considered to be the same file.


Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC
Report a bug or request new features
© 2002