> sys.path when starting uwsgi is
> ['.', '', '/usr/lib/python2.6', ... etc ... ]
>
> Can I avoid having those first 2 paths in the sys.path?
>
>
> This instance is run buy the emperor, and is executed as:
> /opt/nginx/sbin/uwsgi --ini /home/damjan/web-apps/test/uwsgi.inih:
>
> the .ini file is:
>
> [uwsgi]
> plugin = python
> processes = 1
> harakiri = 30
> socket = 127.0.0.1:4002
> wsgi-file = %d/test.wsgi
>
> (nothing special)
>
> the test.wsgi is the simples wsgi app returing sys.path
>
>

uWSGI only adds the first one (the '.'). This is required for some funny
platform (Haiku if i remember correctly), or some specific case.

So in python you will have:

['', '/usr/lib/python2.6', ... etc ... ]

in uwsgi:

['.', '', '/usr/lib/python2.6', ... etc ... ]

You can obviously remove the first one directly in your .wsgi file with
directly working on sys.path list.

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to