Re: package importing
Ivan Ricotti <i.ricotti-ZdDpcFUkCv/[email protected]> Fri, 25 Jun 2010 09:32:20 +0200
| Newsgroups | gmane.comp.python.mod_python |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I fixed my problem reconfiguring the VirtualHost using properly the
PythonPath directive (see here:
http://www.modpython.org/live/mod_python-3.1.2b/doc-html/dir-other-pp.html
):
<VirtualHost *:80>
ServerAdmin root@localhost
ServerName mydomain.com
PythonPath "sys.path+['/path/to/mybasedir']"
Alias / /path/to/mybasedir
<Location />
DirectoryIndex index.html index.py
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
</Location>
</VirtualHost>
Cheers, :)
Ivan
--
Ivan Ricotti
-------------------------------------------------
eLabor sc - via Giuseppe Garibaldi 33, 56127 Pisa
tel: +39 050 970 363, web: http://www.elabor.biz
email: i.ricotti-ZdDpcFUkCv/[email protected]
GnuPG KeyID: DFD581C5 - 13/11/2003