On Monday, August 06, 2012 09:25:18 PM Sebastian Hilbert wrote:
> On Monday, August 06, 2012 09:21:06 PM Sebastian Hilbert wrote:
> 
> From the manual
> 
> http://www.pyinstaller.org/export/develop/project/doc/Manual.html?format=raw
> 
> A --onefile works by packing all the shared libs / dlls into the archive
> attached to the bootloader executable (or next to the executable in a
> non-elf configuration). When first started, it finds that it needs to
> extract these files before it can run "for real". That's because locating
> and loading a shared lib or linked-in dll is a system level action, not
> user-level. With PyInstaller v1.6dev it always uses a temporary directory
> (_MEIXXXXX, where XXXXX is a random number to avoid conflicts) in the
> user's temp directory. It then executes itself again, setting things up so
> the system will be able to load the shared libs / dlls. When execution is
> complete, it recursively removes the entire directory it created.
> 
> 
> That is all nice and good but what about the one-dir mode I seem to use.
> 
> Where is the content of the binary at then ?
> 
> Sorry if this is a huge misunderstanding on my part.
>

Here is the content of gnumed.exe

C:\Dokumente und Einstellungen\basti>C:\workplace\pyinstaller-
trunk\utils\Archiv
eViewer.py C:\workplace\gnumed-client.1.2.2\frozen\bin\gnumed.exe
 pos, length, uncompressed, iscompressed, type, name
[(0, 3633464, 3633464, 0, 'z', 'outPYZ1.pyz'),
 (3633464, 7681, 20506, 1, 'm', 'iu'),
 (3641145, 169, 234, 1, 'm', 'struct'),
 (3641314, 6047, 16017, 1, 'm', 'archive'),
 (3647361, 1842, 3925, 1, 's', '_mountzlib'),
 (3649203, 81, 76, 1, 's', 'useUnicode'),
 (3649284, 1027, 2116, 1, 's', 'versioneddll'),
 (3650311, 860, 1722, 1, 's', 'win32comgenpy'),
 (3651171, 5724, 18642, 1, 's', 'gnumed')]

and outPYZ1.pyz contains the files I am looking for.

How do I programatically access files in outPYZ1.pyz at runtime ?

Sebastian

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to