|
@@ -89,9 +89,6 @@ class LodelMetaPathFinder(importlib.abc.MetaPathFinder):
|
89
|
89
|
os.mkdir(mod_path)
|
90
|
90
|
fd = open(os.path.join(mod_path, '__init__.py'), 'w+')
|
91
|
91
|
fd.close()
|
92
|
|
- #create a symlink to plugins pkg
|
93
|
|
- os.symlink(os.path.join(lodel.__path__[0],'plugins'),
|
94
|
|
- os.path.join(lodel_pkg_path, 'plugins'), True)
|
95
|
92
|
lodel_pkg_path = os.path.join(mod_path, 'lodel')
|
96
|
93
|
if not os.path.exists(lodel_pkg_path):
|
97
|
94
|
os.symlink(lodel.__path__[0], lodel_pkg_path, True)
|
|
@@ -537,7 +534,8 @@ MONOSITE mode")
|
537
|
534
|
#@return The module name in the current context
|
538
|
535
|
def _translate(self, module_fullname):
|
539
|
536
|
#This test should be obsolete now
|
540
|
|
- if module_fullname.startswith('lodel'):
|
|
537
|
+ if module_fullname.startswith('lodel') or \
|
|
538
|
+ module_fullname.startswith('leapi_dyncode'):
|
541
|
539
|
if self.multisite():
|
542
|
540
|
return self.__pkg_name +'.'+ module_fullname
|
543
|
541
|
else:
|