module not found in IIS virtual dir



I'm trying to call python scripts from IIS in the following tree:

upgrade/
    util/
        __init__.py
        logonUser.py
    select/
        selectFiles.py

- select/ is referred from IIS as a virtual dir vselect.

- upgrade/ is inserted into the Python path via .pth file in
  .../site-packages.

- selectFiles.py has a line "from util import logonUser".

If I run selectFiles.py from the command line everything is ok. But
if I call it via IIS (http://localhost/vselect/selectFiles.py) there
is an error "No module named util" due the fact that selectFiles.py
still sees upgrade/ in the Python Path but upgrade/util/logonUser.py
can no longer be found by selectfiles.py (os.path.exists returns
false). This is strange because other modules, e.g. odbc.py are still
importable. Hope you can help me. Thanks.

--
-------------------------------------------------------------------
Peter Maas,  M+R Infosysteme,  D-52070 Aachen,  Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------
.



Relevant Pages

  • Re: HDD driver low memory condition
    ... the newsgroups are staffed weekdays by Microsoft Support professionals to ... be typed in a command prompt. ... To your IIS settings issue, do you have the IIS matabase backup file? ... newsgroups so that they can be resolved in an efficient and timely manner. ...
    (microsoft.public.windows.server.sbs)
  • Re: iis6 w3wp.exe thread count gets high and wp becomes sluggish
    ... objects which do not have the right apartment model and threading ... IIS is a high performance web server ... I have a website that has 6 app pools. ... *** In order for this command to work properly, ...
    (microsoft.public.inetserver.iis)
  • Re: IIS-bug - CGI-applikation terminates when loading standard DLL
    ... Hit refresh and the page will load fine second time round. ... not executed with the CreateProcessAsUserAPI call by IIS anymore. ... Here is a description of how to set the metabase property which control ... If the command is successful, it will tell you it updated the setting, ...
    (microsoft.public.inetserver.iis)
  • RE: IIS Problems???? Companyweb and Default Web Sites will not St
    ... Every name in IIS must be ... you must have the Microsoft Windows Support ... To determine whether any IP addresses are listed, open a command prompt, ... Companyweb and Default Web Sites will not Start ...
    (microsoft.public.windows.server.sbs)
  • Re: PHP cannot execute programs
    ... CalculateProject.exe runs fine from the command line. ... applications in IIS and at the file level. ... > There seems to be some change in the permissions, ... > access the assembly is now denied access. ...
    (microsoft.public.inetserver.iis)