On Jan 22, 2010, at 1:30 AM, Paul McNett wrote:

> I can't figure out why hd wouldn't be defined. Is this a Python 2.6 thing?

        I found this a few weeks ago, but haven't committed it. Here's the diff:

[...@homer ~/projects/dabo]$ svn diff dApp.py
Index: dApp.py
===================================================================
--- dApp.py     (revision 5581)
+++ dApp.py     (working copy)
@@ -1367,6 +1367,8 @@
 
 
        def _getHomeDirectory(self):
+               # start with the current directory as a default
+               hd = os.getcwd()
                try:
                        hd = self._homeDirectory
                except AttributeError:


        There is at least one path through the code that results in 'hd' never 
getting defined, so this takes care of that case.


-- Ed Leafe




_______________________________________________
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]

Reply via email to