"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
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
> 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
>
"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-
"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
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
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:
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
"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
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
10 matches
Mail list logo