Eric Pavey wrote:
Presume I have a package 'a' like this:* /pystuff (added to sys.path) o /a (start of my package) + __init__.py+ /b # __init__.py# module.py to import module.py: import *a.b.module*What I'm trying to find is a way to query exactly what I typed above (in bold): Inside of module.py, can it query it's path back to the package root?
Why would you want that? Can you describe the problem you're having now that requires you to know the module's package path? Right now, you're just describing a solution to your problem, not the problem itself. Maybe we can find another solution that doesn't involve knowing the module's package path.
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
