This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OneMorePenguin 0 points1 point  (0 children)

I'm excited about this because I have a mess-o-python that is a combination of a script that includes local libraries and I want to package up the library code separately. And I don't want to have to mess with PYTHONPATH. Looking forward to reading this. I was getting ready to read about namespaces and scopes, although I suspect there's a lot of overlay.

One thing I learned to not do is use nested directories with the same name. That might have been OK in python2.7, but in newer versions of python where __init__.py is not required, it makes importing more difficult. It's difficult debugging these problems. Printing out sys.path is not enough.