[Zope3-dev] Package organization quandry

Patrick K. O'Brien pobrien@orbtech.com
Sat, 18 May 2002 08:04:50 -0500


[Chris Withers]
>
> What happens when you're trying to figure out _which_ PageTemplate package
> is being used. The thought of that scares e somewhat...

Python can tell you which one got imported:

>>> import calendar
>>> calendar.__file__
'C:\\PYTHON22\\lib\\calendar.py'

>>> import shell
>>> shell.__file__
'.\\shell.pyc'

>>> from BTrees import IOBTree
>>> IOBTree.__file__
'C:\\PYTHON22\\lib\\site-packages\\BTrees\\IOBTree.pyc'

---
Patrick K. O'Brien
Orbtech