[Zope-Checkins] CVS: Zope/lib/python/OFS - Application.py:1.176.2.2
Andreas Jung
andreas@digicool.com
Wed, 9 Jan 2002 14:05:27 -0500
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv29469/OFS
Modified Files:
Tag: Zope-2_5-branch
Application.py
Log Message:
Collector #118: fixed import path for Examples.zexp
=== Zope/lib/python/OFS/Application.py 1.176.2.1 => 1.176.2.2 ===
# However, make sure that if the examples have been added already
# and then deleted that we don't add them again.
+
+
if not hasattr(app, 'Examples') and not \
hasattr(app, '_Zope25_examples_have_been_added'):
- examples_path = os.path.join(Globals.INSTANCE_HOME, 'import', 'Examples.zexp')
+
+ examples_path = os.path.join(Globals.SOFTWARE_HOME, \
+ '..','..','import', 'Examples.zexp')
if os.path.isfile(examples_path):
app._importObjectFromFile(examples_path, verify=0)
app._Zope25_examples_have_been_added=1