import sys,new,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('elisa',)); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and sys.modules.setdefault('elisa',new.module('elisa')); mp = (m or []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p)
import sys,new,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('elisa', 'plugins')); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and sys.modules.setdefault('elisa.plugins',new.module('elisa.plugins')); mp = (m or []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p); m and setattr(sys.modules['elisa'], 'plugins', m)
