On Wednesday, August 25, 2010 05:30:44 am Ed Leafe wrote: > On Aug 25, 2010, at 7:59 AM, Henning Hraban Ramm wrote: > > I get a problem as soon as I try to wrap my dabo app with py2app: > > dabo looks for > > My.app/Contents/Resources/logging.conf > > or > > My.app/Contents/Resources/lib/python2.6/site-packages.zip/dabo/logging.co > > nf > > > > The first I can provide (but you must know that!), the latter (default > > one) isn't automatically packaged by py2app. > > Perhaps we must provide a recipe? I'll ask on the MacPython list. > > The standard module finders won't detect *any* config files; they'll > have > to be manually specified. > > > ConfigParser.NoSectionError: No section: 'formatters' > > > > The real error should be "config file not found", perhaps can you > > check that in dabo/__init__.py (after line 130). > > The current code checks for a config file in the app directory, and if > it's not there, assumes that the default Dabo config file is present. > > I'm wondering: most of us seem to prefer doing the configuration in the > settings file, like everything else in Dabo. I actually coded it that way > first, and then realized that the standard way of doing things is to use a > logging.conf file. What if I check for that file in both places, and if it > doesn't exist in either, get everything from the dabo.settings values? > > > -- Ed Leafe +1 Johnf
_______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
