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