Re: image files packaged into single file executalble py pyinstaller

"Brendan Simon (eTRIX)" <[email protected]>
Newsgroups gmane.comp.python.wxglade
Organization eTRIX pty ltd
Message-ID <[email protected]>
On 3/11/17 11:12 am, Dietmar Schwertberger wrote:
> P.S.: You can use relative path names in wxGlade. Does Pyinstaller set
> the current working directory to the temp directory? In that case, the
> relative name should work. If not, you may try to set the working
> directory in your code.
From memory when you select the bitmap file, wxglade will put the full
absolute filename in the generated code.  Maybe modify to use a relative
path (but relative to what?  the wxglade project file?) or make it
editable.  It's been a while so I'll have to try it out again.

I'm not sure if pyinstaller sets the working directory to the temp
directory.  I'm guessing that it doesn't.  Apparently it's bad practise
to rely on (or set) the working directory.

> The code that wxGlade uses, just loads a bitmap using
> wx.Bitmap(filename). Does MacOS implicitely expand environment
> variables in filename strings? 
I'm fairly certain that there is no implicit expansion of env vars.

Brendan.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.