[Zope-Checkins] CVS: Zope3/lib/python/Zope/PageTemplate - PageTemplateFile.py:1.1.2.11
Jim Fulton
jim@zope.com
Thu, 17 Jan 2002 19:09:23 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/PageTemplate
In directory cvs.zope.org:/tmp/cvs-serv6606
Modified Files:
Tag: Zope-3x-branch
PageTemplateFile.py
Log Message:
Changed to use new package_home implementation in Zope.Misc.
=== Zope3/lib/python/Zope/PageTemplate/PageTemplateFile.py 1.1.2.10 => 1.1.2.11 ===
from PageTemplate import PageTemplate, ViewMapper
from Expressions import SecureModuleImporter
+from Zope.Misc.package_home import package_home
DevelopmentMode = 1 # XXX should be imported from somewhere
-
-
-def package_home(gdict):
- filename = gdict["__file__"]
- return os.path.dirname(filename)
-
class MacroCollection:
def __of__(self, parent):