| 130 | | projectpath = os.path.join(os.path.dirname(project.__file__), 'locale') |
| | 130 | |
| | 131 | # If the settings module is a folder, |
| | 132 | # the projectpath must be retrieved in a different way. |
| | 133 | # Maybe it's the case of adding a constant or a function |
| | 134 | # to get this info anywhere in django. |
| | 135 | if os.path.basename(project.__file__).startswith('__init__.py'): |
| | 136 | projectpath = os.path.join(os.path.dirname(os.path.dirname(project.__file__)), 'locale') |
| | 137 | else: |
| | 138 | projectpath = os.path.join(os.path.dirname(project.__file__), 'locale') |