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

(from Yarko on Pycon-Organizers):

"""
IF (however) I start a _regular_ python shell from bash, and try this,   app 
start 
results in:

 
yak...@cyt007-010:~/workspace/web2py/pycon/web2-conf-devel/applications/register/static/badges/images$
 
python
     Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
     [GCC 4.3.3] on linux2
     Type "help", "copyright", "credits" or "license" for more information.
     >>> import dabo
     >>> dabo.dApp().start()
     Traceback (most recent call last):
       File "<stdin>", line 1, in <module>
       File 
"/usr/local/lib/python2.6/dist-packages/Dabo-0.9.2-py2.6.egg/dabo/dApp.py", 
line 379, 
in start
         self.setup()
       File 
"/usr/local/lib/python2.6/dist-packages/Dabo-0.9.2-py2.6.egg/dabo/dApp.py", 
line 302, 
in setup
         if self.HomeDirectory not in sys.path:
       File 
"/usr/local/lib/python2.6/dist-packages/Dabo-0.9.2-py2.6.egg/dabo/dApp.py", 
line 
1412, in _getHomeDirectory
         if os.path.split(hd)[1][-4:].lower() in (".zip", ".exe"):
     UnboundLocalError: local variable 'hd' referenced before assignment
"""

Paul


_______________________________________________
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