Last change
on this file since 1357 was
1357,
checked in by mylan, 14 years ago
|
#108: Refactored theme vars storage, some cleanup
|
File size:
537 bytes
|
Line | |
---|
1 | # |
---|
2 | import os |
---|
3 | from paste.script import pluginlib |
---|
4 | |
---|
5 | from quintagroup.themetemplate.qplone3_theme import qPlone3Theme |
---|
6 | |
---|
7 | def getEggInfo(output_dir): |
---|
8 | """ Return path to egg info directory, raise error if not found. |
---|
9 | """ |
---|
10 | egg_info = pluginlib.find_egg_info_dir(output_dir) |
---|
11 | assert egg_info is not None, "egg_info directory must present for the package" |
---|
12 | |
---|
13 | return egg_info |
---|
14 | |
---|
15 | |
---|
16 | def getThemeVarsFP(egg_info): |
---|
17 | """ Return file system path to theme vars configurations |
---|
18 | """ |
---|
19 | return os.path.join(egg_info, '..', 'theme_vars.cfg') |
---|
Note: See
TracBrowser
for help on using the repository browser.