next up previous contents
Next: the info file Up: Initialization of dotdotfiles Previous: The main dotdotfile - main.template

import

  Dotdotfiles can be split over several files, with the command import. Import tells the dotfile generator that it has to search in these files for code too. The syntax is very simple:
import filename
The file will be found in the module_path.

The file local.template will automaticly be imported, if it exists. This file is for local add on's.

NOTE: If you want any special utility functions, you need to put these in separate files, and source them with source, NOT import, since the dotfile generator will search for the # path construction in every procedure it finds in every file which is imported, but not in files which are sourced. The source command has to be as follows:
source [lindex $argv 1]/filename



Jesper Kjær Pedersen <blackie@imada.ou.dk>
Wed Oct 2 13:29:53 MET DST 1996