[web2py] path in fcgihandler.py

47 views
Skip to first unread message

howesc

unread,
Apr 23, 2010, 11:51:17 AM4/23/10
to web2py-users
Hi,

quick question about the path in fcgihandler.py (from 1.77.3). Is
there any reason that:

path = os.path.dirname(os.path.abspath(__file__))
if not path in sys.path:
sys.path.append(path)
sys.path.append(os.path.join(path,'site-packages'))

should not be replaced with:

path = os.path.dirname(os.path.abspath(__file__))
if not path in sys.path:
sys.path.append(path)
if not os.path.join(path, 'site-packages') in sys.path:
sys.path.append(os.path.join(path,'site-packages'))

I ask because I cd to the web2py directory before starting the handler
in my startup scipt (integrated with cherokee) and noticed that then
that my current directory is on the path, but site-packages never gets
added.

If it's ok to update the handler, i'd like that. otherwise i'll
change my startup script to not cd before running.

thanks,

christian


--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

mdipierro

unread,
Apr 23, 2010, 1:15:00 PM4/23/10
to web2py-users
oops. that is a bug. That may explain the problem that some people had
with simplejson
Reply all
Reply to author
Forward
0 new messages