|
Lines 88-103
Link Here
|
| 88 |
ud.debug(ud.ADMIN, ud.INFO, 'admin.modules.update: importing "%s"' % p) |
88 |
ud.debug(ud.ADMIN, ud.INFO, 'admin.modules.update: importing "%s"' % p) |
| 89 |
parts=p.split(os.path.sep) |
89 |
parts=p.split(os.path.sep) |
| 90 |
mod, name='.'.join(parts), '/'.join(parts) |
90 |
mod, name='.'.join(parts), '/'.join(parts) |
| 91 |
m=__import__(mod, globals(), locals(), name) |
91 |
try: |
| 92 |
m.initialized=0 |
92 |
m=__import__(mod, globals(), locals(), name) |
| 93 |
modules[m.module]=m |
93 |
m.initialized=0 |
| 94 |
if isContainer(m): |
94 |
modules[m.module]=m |
| 95 |
containers.append(m) |
95 |
if isContainer(m): |
|
|
96 |
containers.append(m) |
| 96 |
|
97 |
|
| 97 |
# update the list of superordinates |
98 |
# update the list of superordinates |
| 98 |
superordinate = superordinate_name(m) |
99 |
superordinate = superordinate_name(m) |
| 99 |
if superordinate: |
100 |
if superordinate: |
| 100 |
superordinates.add(superordinate) |
101 |
superordinates.add(superordinate) |
|
|
102 |
except ImportError, e: |
| 103 |
ud.debug(ud.ADMIN, ud.ERROR, 'admin.modules.update: import of "%s" failed: %s' % (p, e)) |
| 101 |
|
104 |
|
| 102 |
|
105 |
|
| 103 |
for p in sys.path: |
106 |
for p in sys.path: |