py2exe windows apps path question

Grant Edwards grante at visi.com
Tue Aug 2 20:10:27 CEST 2005


On 2005-08-02, vincent wehren <vincent at visualtrans.de> wrote:
>
> "Grant Edwards" <grante at visi.com> schrieb im Newsbeitrag 
> news:11ev0tcg9n2ndd at corp.supernews.com...
>|I have several python apps (some wxPython, some plain text-mode
>| stuff) that I distribute internally for installation on Win32
>| machines.  They're bundled/installed using py2exe and inno
>| setup.
>|
>| I followed what I think is the normal procedure of installing
>| each app in its own directory under /Program
>| Files/<vendor>/<app>.
>|
>| The problem is that the apps only run if they're started with
>| the install directory as the current working directory.
>| Otherwise they can't find the .dll's they use from the install
>| directory.
>
> AFAIK, Windows normally *does* search the directory where the executable 
> module for the current process lives in for dlls. What sort of dlls are 
> given you trouble?

One's a "driver" for a CAN bus USB widget.  The other failure
that springs to mind is that gnuplot-py couldn't find something
(could have been an .exe) that was in the app directory.

-- 
Grant Edwards                   grante             Yow!  HUGH BEAUMONT died
                                  at               in 1982!!
                               visi.com            



More information about the Python-list mailing list