Re: image files packaged into single file executalble py pyinstaller
Dietmar Schwertberger <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
On 11/3/2017 1:52 AM, Brendan Simon (eTRIX) wrote: > 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. The bitmap property field should be editable. It certainly is on other platforms. > 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. Usually, on Windows and Unix the working directory is the location of the main file. Isn't that true for Mac OS when you execute a file with double click? Setting the working directory should not affect other processes. Of course, if the program is launched from the command line, then setting the directory will have an effect on programs that are launched later on. >> 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. IIRC Acorn's RISC OS did so. Seems that was the only platform to do so. They had many good ideas at that time... Regards, Dietmar ------------------------------------------------------------------------------ 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