Rev | Line | |
---|
[5068] | 1 | """This module contains a dictionary of directories flagged for distribution. |
---|
| 2 | The format is |
---|
| 3 | |
---|
| 4 | {source_dir: destination_dir} |
---|
| 5 | |
---|
| 6 | where source_dir is an existing directory in the repository. |
---|
| 7 | The value of destination_dir will determine the directory name in the |
---|
| 8 | distribution tarball. |
---|
| 9 | If destination_dir is None, the name source_dir will be used also for |
---|
| 10 | the destination_dir. |
---|
| 11 | |
---|
| 12 | Example: |
---|
| 13 | |
---|
| 14 | dirmap = {join('anuga_core', 'source', 'anuga'): 'anuga'} |
---|
| 15 | |
---|
| 16 | """ |
---|
| 17 | |
---|
| 18 | from os.path import join |
---|
| 19 | |
---|
| 20 | dirmap = {} |
---|
| 21 | dirmap[join('anuga_core', 'source', 'anuga')] = 'anuga' |
---|
| 22 | dirmap[join('anuga_validation', 'okushiri_2005')] = None |
---|
| 23 | dirmap[join('anuga_validation', 'automated_validation_tests')] = None |
---|
[5118] | 24 | #dirmap[join('anuga_core', 'documentation', 'user_manual', 'demos')] = None |
---|
| 25 | dirmap[join('anuga_core', 'documentation', 'user_manual')] = None |
---|
[5068] | 26 | |
---|
| 27 | |
---|
| 28 | # Expand None |
---|
| 29 | for key in dirmap: |
---|
| 30 | if dirmap[key] is None: |
---|
| 31 | dirmap[key] = key |
---|
| 32 | |
---|
| 33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.