And more madness...
Executed from inside 'act1', which contains the directory / module
'story':
directory = os.path.dirname(__file__)
req.write(str(directory))
story = apache.import_module('story', path=[directory])
Results:
File "/home/www/---/docs/act1/play.py", line 24, in Rebuild
storylab = apache.import_module('story', path=[directory])
File "/usr/local/python2.5.2/lib/python2.5/site-packages/mod_python/
importer.py", line 304, in import_module
return __import__(module_name, {}, {}, ['*'])
ImportError: No module named story
Awesome. I'm going to go stick my head through a wall.
--
http://mail.python.org/mailman/listinfo/python-list