*** __init__.py Thu Feb 27 15:16:58 2003 --- __init__.py.orig Thu Feb 27 15:17:33 2003 *************** *** 20,31 **** import os # figure where ZRoundup is installed ! import Products ! for here in Products.__path__: ! path = os.path.join(here, 'ZRoundup') ! if os.path.exists(path): break ! else: ! raise ValueError, "Can't determine where ZRoundup is installed" # product initialisation import ZRoundup --- 20,40 ---- import os # figure where ZRoundup is installed ! here = None ! if os.environ.has_key('INSTANCE_HOME'): ! here = os.environ['INSTANCE_HOME'] ! path = os.path.join(here, 'Products', 'ZRoundup') ! if not os.path.exists(path): ! path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup') ! if not os.path.exists(path): ! here = None ! if here is None: ! from __main__ import here ! path = os.path.join(here, 'Products', 'ZRoundup') ! if not os.path.exists(path): ! path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup') ! if not os.path.exists(path): ! raise ValueError, "Can't determine where ZRoundup is installed" # product initialisation import ZRoundup