Re: .pth files in working directory



Michael Ekstrand schrieb:
If top/ is the working directory for your Python interpreter, the
problem is solved automatically. Python puts the current working
directory in the default search path. So, if you run

IIS sets the the site path as working directory. So I would probably have to change wd at the beginnig of every module. Each module would read the top location from a .pth file in its directory. Yes that's possible. Thanks for your help.

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



Relevant Pages

  • Re: Newbie: module structure and import question
    ... Thx Rob. ... what py file will import it and where the working directory should be. ... Thx again, Rob. ... > I think your issue is your module search path. ...
    (comp.lang.python)
  • Re: New essay: whereis utility
    ... _getcwd gives the current working directory, ... |>| the search path, is likely to fail, particularly in light of the ... |> strFileName = pszVar; ...
    (microsoft.public.vc.mfc)
  • Re: New user
    ... chmod +x ... The current working directory ... That's in the search path. ... loaded Suse Linux 10. ...
    (alt.os.linux.suse)