Revision cfcedbb1
b/snf-common/README | ||
---|---|---|
1 | 1 |
README |
2 | 2 |
======= |
3 |
Synnefo top level package |
|
3 |
snf-common provides a base layer of all synnefo related software. |
|
4 |
|
b/snf-common/synnefo/util/entry_points.py | ||
---|---|---|
27 | 27 |
for e in app_entry_points: |
28 | 28 |
try: |
29 | 29 |
NEW_INSTALLED_APPS = list(e.load()()) |
30 |
except Exception, e: |
|
31 |
for e in app_entry_points: |
|
32 |
NEW_INSTALLED_APPS = NEW_INSTALLED_APPS + \ |
|
33 |
e.module_name.split(",") |
|
30 |
except Exception, ex: |
|
31 |
NEW_INSTALLED_APPS = NEW_INSTALLED_APPS + \ |
|
32 |
e.module_name.split(",") |
|
34 | 33 |
|
35 | 34 |
# extend additional settings |
36 | 35 |
# TODO: existing settings logic ?? |
b/snf-common/synnefo/version.py | ||
---|---|---|
7 | 7 |
|
8 | 8 |
|
9 | 9 |
def get_dist(dist_name): |
10 |
return pkg_resouces.get_distribution(dist_name) |
|
10 |
return pkg_resources.get_distribution(dist_name)
|
|
11 | 11 |
|
12 | 12 |
|
13 | 13 |
def get_dist_version(dist_name): |
Also available in: Unified diff