| | 10 | |
|---|
| | 11 | # List the paths under dabo/icon/themes: |
|---|
| | 12 | iconDir = "dabo/icons/themes" |
|---|
| | 13 | iconDirs = {} |
|---|
| | 14 | def getIconSubDir(arg, dirname, fnames): |
|---|
| | 15 | if ".svn" not in dirname and "cards" not in dirname.lower() and dirname[-1] != "\\": |
|---|
| | 16 | icons = glob.glob(os.path.join(dirname, "*.png")) |
|---|
| | 17 | if icons: |
|---|
| | 18 | subdir = os.path.join(iconDir, dirname[len(arg)+1:]) |
|---|
| | 19 | subdir = subdir.replace(os.sep, ".") |
|---|
| | 20 | iconDirs[subdir] = ["*.png"] |
|---|
| | 21 | os.path.walk(iconDir, getIconSubDir, iconDir) |
|---|
| | 22 | |
|---|
| | 23 | package_data = { |
|---|
| | 24 | '':['ANNOUNCE', 'AUTHORS', 'ChangeLog', 'INSTALL', |
|---|
| | 25 | 'LICENSE.TXT', 'README', 'TODO'], |
|---|
| | 26 | 'dabo.icons': ['*.png', '*.ico'], |
|---|
| | 27 | 'dabo.icons.cards.small': ['*.png', '*.ico'], |
|---|
| | 28 | 'dabo.icons.cards.large': ['*.png', '*.ico'], |
|---|
| | 29 | 'dabo.lib.reporting':['*.rfxml'], |
|---|
| | 30 | 'dabo.lib.reporting_stefano':['*.rfxml'], |
|---|
| | 31 | 'dabo.ui.uiwx.macImageProblem':['*.png'], |
|---|
| | 32 | 'dabo.ui.uiwx.masked':['README'], |
|---|
| | 33 | } |
|---|
| | 34 | |
|---|
| | 35 | package_data.update(iconDirs) |
|---|
| | 36 | |
|---|
| 18 | | package_data = { |
|---|
| 19 | | '':['ANNOUNCE', 'AUTHORS', 'ChangeLog', 'INSTALL', |
|---|
| 20 | | 'LICENSE.TXT', 'README', 'TODO'], |
|---|
| 21 | | 'dabo.icons': ['*.png', '*.ico'], |
|---|
| 22 | | 'dabo.icons.cards.small': ['*.png', '*.ico'], |
|---|
| 23 | | 'dabo.icons.cards.large': ['*.png', '*.ico'], |
|---|
| 24 | | 'dabo.lib.reporting':['*.rfxml'], |
|---|
| 25 | | 'dabo.lib.reporting_stefano':['*.rfxml'], |
|---|
| 26 | | 'dabo.ui.uiwx.macImageProblem':['*.png'], |
|---|
| 27 | | 'dabo.ui.uiwx.masked':['README'], |
|---|
| 28 | | }, |
|---|
| | 47 | package_data = package_data, |
|---|