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 what

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 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 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-mode | |

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 except

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 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 running from