It's a large module that I depend on (mayavi) that is looking for its configuration files based its __path__, which means that it's looking in the pyz file and failing. I think that's bad design, to be looking for a config file in the module's path, but I don't have any power to change that...I can, however, hack the module so that it looks for the config file elsewhere. If there is no way to pack a data file in the pyz (plan A), I'll just hack the code (plan B).
You mention that it is possible, although unsupported. Can you give me a hint as to how to do it? I think the access will happen naturally, because the error message that I get from mayavi indicates that it is just looking for its config file in the pyz...if it was just packed in there, I think it would find it. On Fri, Oct 14, 2011 at 3:02 AM, Hartmut Goebel <[email protected]>wrote: > Am 14.10.2011 00:03, schrieb Daniel Hyams: > > Using: pyinstaller svn as of 10/12. Windows. one-dir mode. >> >> I am trying to package something up (it's a module in site-packages), and >> after packaging, that module is looking for its configuration file inside >> the pyz file that is archived in my exe. >> > > Is this what you *really* want: look for the config file in the pyz? Or > does your application misbehave? > > > Is there a way to stick a regular data file in the PYZ? >> > > Yes, but it's not supported and accessing the file afterwards is > complicated and not supported either. Simply because this is not how it is > meant to work. > > -- > Schönen Gruß - Regards > Hartmut Goebel > Dipl.-Informatiker (univ.), CISSP, CSSLP > > Goebel Consult > Spezialist für IT-Sicherheit in komplexen Umgebungen > http://www.goebel-consult.de > > Monatliche Kolumne: > http://www.cissp-gefluester.**de/<http://www.cissp-gefluester.de/> > Goebel Consult ist Mitglied bei http://www.7-it.de > > > -- > 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 pyinstaller+unsubscribe@** > googlegroups.com <pyinstaller%[email protected]>. > For more options, visit this group at http://groups.google.com/** > group/pyinstaller?hl=en <http://groups.google.com/group/pyinstaller?hl=en> > . > > -- Daniel Hyams [email protected] -- 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.
