I changed it to sys.path.append('/var/www/wsgi/') and I added a empty
__init__.py.  But no good.

What kind of permissions do I need. Shouldn't these be ok?
drwxr-xr-x 2 www-data www-data    4096 2011-11-08 21:56 ./
drwxr-xr-x 5 root     root        4096 2011-11-07 09:22 ../
-rw-r--r-- 1 www-data www-data       0 2011-11-08 21:56 __init__.py
-rwxr-xr-- 1 www-data www-data     375 2011-11-08 21:39 mapfactory.py*
-rwxr-xr-- 1 www-data www-data    2239 2011-11-08 21:38 ogcserver.conf*
-rw-r--r-- 1 www-data www-data 2135360 2011-11-07 09:36 skikart.xml
-rwxr-xr-- 1 www-data www-data     166 2011-11-08 21:53 test.py*


Espen



On Tue, Nov 8, 2011 at 10:51 PM, Dane Springmeyer
<[email protected]> wrote:
>
> On Nov 8, 2011, at 1:44 PM, Espen Isaksen wrote:
>
>> import sys
>> from mapnik2.ogcserver.wsgi import WSGIApp
>> sys.path.append('/var/www/wsgi/mapfactory.py')
>
>
> You likely need to append the path to the directory that file is in.
>
> So:
>
> sys.path.append('/var/www/wsgi/')
>
> And make sure permissions are good for that and an __init__.py file exists.
>
> Dane
>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to