|
Wouter van Marle
wouter at squirrel-systems.com
Fri May 13 23:34:11 EDT 2005
Hi all,
The problems importing my modules are solved, using the following
statement, as suggested by Graham:
import os
directory = os.path.split(__file__)[0]
main = apache.import_module("main",path=[directory])
The simpler version:
main = apache.import_module("main")
suffers from loss of the module; apparently the current path of the file
that's being run, is not added to syspath like what happens in normal
python programs. This was unexpected to me.
Wouter.
|