[Zope-Checkins] CVS: Zope/lib/python/OFS - Application.py:1.159
Brian Lloyd
brian@digicool.com
Fri, 19 Oct 2001 09:37:16 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv3204
Modified Files:
Application.py
Log Message:
updated install_product to recognize .pyo files
=== Zope/lib/python/OFS/Application.py 1.158 => 1.159 ===
if not exists(path_join(package_dir, '__init__.py')):
if not exists(path_join(package_dir, '__init__.pyc')):
+ if not exists(path_join(package_dir, '__init__.pyo')):
return
pname="Products.%s" % product_name
@@ -634,6 +635,7 @@
if not isdir(package_dir): return
if not exists(path_join(package_dir, '__init__.py')):
if not exists(path_join(package_dir, '__init__.pyc')):
+ if not exists(path_join(package_dir, '__init__.pyo')):
return
try:
product=__import__("Products.%s" % product_name,