| 46 | | for w in os.walk('.'): |
|---|
| 47 | | if w[0].endswith(os.sep + 'config') and not os.sep + '.' in w[0]: |
|---|
| 48 | | modulename = "%s.app" % w[0][2:].replace(os.sep, ".") |
|---|
| 49 | | break |
|---|
| | 47 | # Look for a 'config' package |
|---|
| | 48 | for dirpath, dirs, dummy2 in os.walk('.'): |
|---|
| | 49 | basename = os.path.basename(dirpath) |
|---|
| | 50 | dirname = os.path.dirname(dirpath) |
|---|
| | 51 | init_py = os.path.join(dirpath, '__init__.py') |
|---|
| | 52 | if basename == 'config' and os.path.exists(init_py) and \ |
|---|
| | 53 | dirname[0] in string.ascii_letters + '_': |
|---|
| | 54 | modulename = "%s.app" % dirpath[2:].replace(os.sep, ".") |
|---|