Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
"Gregory Piñero" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > If you need something that works both on a frozen app as well as an > (unfrozen) python > script, you'd be better off using something like: > >> def getAppPrefix(): >> """Return the location the app is runnin

Re: py2exe windows apps path question

2005-08-02 Thread Grant Edwards
On 2005-08-02, vincent wehren <[EMAIL PROTECTED]> wrote: > If you are building paths in you code that are relative to > your app, I'm not using any paths. I use cytpes to load a .dll, and I don't really know what gnuplot-py is doing, but I think it's executing a .exe file and talking to it via a

Re: py2exe windows apps path question

2005-08-02 Thread Gregory Piñero
> If you need something that works both on a frozen app as well as an > (unfrozen) python > script, you'd be better off using something like: > > def getAppPrefix(): > """Return the location the app is running from > """ > isFrozen = False > try: > isFrozen = sys.frozen >

Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
"Grant Edwards" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | On 2005-08-02, vincent wehren <[EMAIL PROTECTED]> wrote: | > | > "Grant Edwards" <[EMAIL PROTECTED]> schrieb im Newsbeitrag | > news:[EMAIL PROTECTED] | >|I have several python apps (some wxPython, some plain text-

Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
"Gregory Piñero" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] |And here is how I make sure I'm always using the right directory in my scripts: | |Put this code at the top: |import sys |curdir=os.path.dirname(sys.argv[0]) |#print curdir |Then I use curdir to build all of the

Re: py2exe windows apps path question

2005-08-02 Thread Grant Edwards
On 2005-08-02, vincent wehren <[EMAIL PROTECTED]> wrote: > > "Grant Edwards" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > news:[EMAIL PROTECTED] >|I have several python apps (some wxPython, some plain text-mode >| stuff) that I distribute internally for installation on Win32 >| machines. They're

Re: py2exe windows apps path question

2005-08-02 Thread Gregory Piñero
On 8/2/05, Gregory Piñero <[EMAIL PROTECTED]> wrote: > Vincent, I'm not sure I completely understand your question but this > link may be the answer nonetheless: > http://www.jrsoftware.org/isfaq.php#workingdir I meant to say Grant, ... , Vincent wasn't the one with the question. Sorry. -- http:

Re: py2exe windows apps path question

2005-08-02 Thread Gregory Piñero
Vincent, I'm not sure I completely understand your question but this link may be the answer nonetheless: http://www.jrsoftware.org/isfaq.php#workingdir And here is how I make sure I'm always using the right directory in my scripts: Put this code at the top: import sys curdir=os.path.dirname(sys.a

Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
"Grant Edwards" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] |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 w

py2exe windows apps path question

2005-08-02 Thread Grant Edwards
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