Just to make sure I'm current with this.. when you said "What you are likely missing in a Class Designer app is including the .cdxml files as data files."
what is the proper method for that? On Sun, Jul 19, 2009 at 1:09 AM, tim awa <[email protected]> wrote: > oh i see. Thanks Paul. > > On Sat, Jul 18, 2009 at 11:10 PM, Paul McNett<[email protected]> wrote: > > tim awa wrote: > >> Using the AppWizard setup.py as reference, I created a ui folder with > >> an empty __init__.py and then put there the frmReportBase.py. I then > >> ran buildwin.bat and the print button worked in the exe version. > > > > Ah, it just clicked why this wasn't working for you: you had the 'import > > dReportWriter' inside a .cdxml file, and py2exe doesn't know to look for > > imports inside a cdxml, so it didn't bundle dReportWriter in the exe. > > > > As soon as you included a file that did include that file, the cdxml > > file inside the exe was able to import the included dReportWriter. > > > >> I am not using frmReportBase.py in my app as my app runs ok without it > >> in ClassDesigner or in python mode. > > > > You can remove FrmReportBase.py, and just include the line: > > > > import dabo.dReportWriter > > > > in your project's main file. > > > >> A nice weekend to everyone. > > > > You too! > > > > Paul > > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
