# -*- coding: utf-8 # tries to import all modules from Products.iva import config import Globals import os cfg_string = config.__file__ cfg_array = cfg_string.split(os.path.sep) mod_path = os.path.join(os.path.sep.join(cfg_array[:-1]), 'modules') for d in os.listdir(mod_path): if os.path.isdir(os.path.join(mod_path, d)) and not d.startswith('.'): __import__('Products.iva.modules.'+d, Globals)