__init__.py question

codecraig codecraig at gmail.com
Fri Apr 22 08:19:12 EDT 2005


Ok,  I have the following directory structure

C:\pycode
   --> blah.py
   --> mynewdir
      --> __init__.py
      --> abc.py

[[ C:\pycode\mynewdir\abc.py ]]

def doFoo():
    print "hi"

def doBar():
    print "bye"

[[ C:\pycode\mynewdir\__init__.py ]]

from mynewdir import *

[[ C:\pycode\blah.py ]]

????

what do i import in blah.py so that I can accesss, abc.doFoo() ?

thanks




More information about the Python-list mailing list