On Saturday, April 25, 2015 at 7:53:27 PM UTC-4, Chris Angelico wrote:
> On Sun, Apr 26, 2015 at 9:36 AM, wrote:
> > The solution ended up being editing the top-level __init__.py:
> >
> > import awesome
> >
> > and then *when in a subdirectory*:
> >
> > import awesome_lib as awesome
> >
> > and *
Thanks, I appreciate the help. I did figure this out.
Chris - apologies for the error in my example, it should have been 'import
util' within awesome.py. IOW, I was looking for awesome.util.helper to be
available, and I also wanted awesome.foo available within helper.py.
The solution ended up b
Apologies, I'm a rubyist and this is a beginner question but I'm not finding a
great answer with lots of googling. I am writing a library, organized something
like this:
awesome_lib/awesome.py
awesome_lib/util/__init__.py
awesome_lib/util/helper.py
In the top of awesome.py:
foo = 'bar'
import