On Sunday, August 05, 2012 09:49:36 PM Sebastian Hilbert wrote:

Hi,

> On Sunday, August 05, 2012 09:42:39 PM Sebastian Hilbert wrote:
> > On Sunday, August 05, 2012 09:37:07 PM Hartmut Goebel wrote:
> > > Am 05.08.2012 21:33, schrieb Sebastian Hilbert:
> > > > What is the preferred way of getting the runtime path for the frozen
> > > > binary ?
> > > 
> > > Yes, please have a look into the "Accessing Data Files" section of the
> > > manual.
> > 
> > Thanks. Did not see it when looking for it.
> > 
> > Sebastian
> 
> or is the content of the exe actually extracted into the directory where the
> exe is called from ?
> 
I do seem to misunderstand something.

I have an app which is frozen as one-dir I believe. Inside the gnumed.exe 
there are a bunch of wxpython plugin files for gnumed.

Those are unpacked I believe when I run gnumed.exe

The question remains where does the content of gnumed.exe (from one-dir mode) 
get unpacked into.

here is the spec file


# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), 
os.path.join(CONFIGDIR,'support\\useUnicode.py'), 'C:/workplace/gnumed-
client.1.2.2/client/gnumed.py'],
             pathex=['C:\\workplace\\pyinstaller-trunk'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
          a.scripts,
          exclude_binaries=1,
          name=os.path.join('build\\pyi.win32\\gnumed', 'gnumed.exe'),
          debug=False,
          strip=None,
          upx=True,
            icon=r'C:\\workplace\\misc\\gnumed.ico')
coll = COLLECT( exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=None,
               upx=True,
               name=os.path.join('frozen', 'bin'))
app = BUNDLE(coll,
             name=os.path.join('dist', 'gnumed.app'))

and here is the hook I created

---------------------------

hiddenimports = ['email',
                 'Gnumed.wxpython.gui',
                 'Gnumed.wxpython.gui.gmDataMiningPlugin',
                 'Gnumed.wxpython.gui.gmEMRBrowserPlugin',
                 'Gnumed.wxpython.gui.gmEMRJournalPlugin',
                 'Gnumed.wxpython.gui.gmKOrganizerPlugin',
                 'Gnumed.wxpython.gui.gmManual',
                 'Gnumed.wxpython.gui.gmMeasurementsGridPlugin',
                 'Gnumed.wxpython.gui.gmNotebookedPatientEditionPlugin',
                 'Gnumed.wxpython.gui.gmNotebookedProgressNoteInputPlugin',
                 'Gnumed.wxpython.gui.gmProviderInboxPlugin',
                 'Gnumed.wxpython.gui.gmScanIdxMedDocsPlugin',
                 'Gnumed.wxpython.gui.gmShowMedDocs',
                 'Gnumed.wxpython.gui.gmSoapPlugin',
                 'Gnumed.wxpython.gui.gmWaitingListPlugin',
                 'Gnumed.wxpython.gui.gmXdtViewer',
                 'Gnumed.wxpython.gui.gmCurrentSubstancesPlugin.py',
                 'Gnumed.wxpython.gui.gmPatientOverviewPlugin.py',
                 'Gnumed.wxpython.gui.gmBillingPlugin.py',
                 'Gnumed.wxpython.gui.gmSimpleSoapPlugin.py',
                 'Gnumed.wxpython.patient',
                 'Gnumed.wxpython.patient.gmCrypto',
                 'Gnumed.wxpython.patient.gmDemographics',
                 'Gnumed.wxpython.patient.gmGP_Allergies',
                 'Gnumed.wxpython.patient.gmGP_AnteNatal_3',
                 'Gnumed.wxpython.patient.gmGP_ClinicalSummary',
                 'Gnumed.wxpython.patient.gmGP_FamilyHistory',
                 'Gnumed.wxpython.patient.gmGP_Immunisation',
                 'Gnumed.wxpython.patient.gmGP_Measurements',
                 'Gnumed.wxpython.patient.gmGP_PastHistory',
                 'Gnumed.wxpython.patient.gmGP_Prescriptions',
                 'Gnumed.wxpython.patient.gmGP_Recalls',
                 'Gnumed.wxpython.patient.gmGP_Referrals',
                 'Gnumed.wxpython.patient.gmGP_Requests',
                 'Gnumed.wxpython.patient.gmGP_ScratchPadRecalls',
                 'Gnumed.wxpython.patient.gmGP_TabbedLists',
                 'win32api']

Now the question is where to look for e.g. the file gmManual (see above) which 
is packaged into gnumed.exe I believe.

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