[Zope] ZHttpServer and NT service diff pythons
Jay, Dylan
djay@lucent.com
Fri, 23 Jul 1999 09:46:05 +1000
> -----Original Message-----
> From: Michel Pelletier [mailto:michel@digicool.com]
> Sent: Tuesday, July 20, 1999 18:06
> To: Jay, Dylan
> Cc: 'zope@zope.org'
> Subject: Re: [Zope] ZHttpServer and NT service using pythons
>
>
> "Jay, Dylan" wrote:
> >
> > I have an external method that works just fine with
> ZHttpServer. When I
> > switched to using apache and the Zope.exe cgi I have
> problems. os.ListDir is
> > not working the same.
>
> How is it not working the same?
I'm using a path such as r"//machinename/sharedrive/dir". With ZHttpServer
this works fine. With apache and the cgi exe it throws an exception... along
the lines of it being an illegal path.
> > I presume that somehow the python path or environment
> > is different. Can anyone help me with this problem?
> >
>
> Try creating an external method that returns sys.path, then
> <!--#var -->
> that with both servers and compare them.
From Apache I get
['D:\\Program Files\\ZopeTest\\lib\\python', 'D:\\Program
Files\\ZopeTest\\lib\\python\\python1.5', 'D:\\Program
Files\\ZopeTest\\lib\\python1.5\\plat-win', 'D:\\Program
Files\\ZopeTest\\bin', 'D:\\Program Files\\ZopeTest\\lib\\python',
'D:\\Program Files\\ZopeTest\\lib\\python1.5', 'D:\\Program
Files\\ZopeTest\\lib\\python1.5\\plat-win', '.\\DLLs', '.\\lib',
'.\\lib\\plat-win', '.\\lib\\lib-tk', 'D:\\Program Files\\ZopeTest\\bin']
From ZHttpServer I get
['D:\\Program Files\\ZopeTest\\lib\\python', 'D:\\Program
Files\\ZopeTest\\lib\\python\\Components', 'D:\\Program
Files\\ZopeTest\\lib\\python\\Components\\win32', 'D:\\Program
Files\\ZopeTest/lib/python', 'D:\\Program Files\\ZopeTest/lib/python1.5',
'D:\\Program Files\\ZopeTest/lib/python1.5/plat-win', 'D:\\Program
Files\\ZopeTest', 'D:\\Program Files\\ZopeTest', 'D:\\Program
Files\\ZopeTest\\lib\\python', 'D:\\Program
Files\\ZopeTest\\lib\\python1.5', 'D:\\Program
Files\\ZopeTest\\lib\\python1.5\\plat-win', '.\\DLLs', '.\\lib',
'.\\lib\\plat-win', '.\\lib\\lib-tk', 'D:\\Program Files\\ZopeTest\\bin']
The main differences seem to be \\ZopeTest\\lib\\python\\Components',
'D:\\Program Files\\ZopeTest\\lib\\python\\Components\\win32', however no
such directories exist.
The os.name returned by both servers is "nt".
Whats going on here?