()
| 167 | |
| 168 | |
| 169 | def _get_distribution_source(): |
| 170 | metadata_file = os.path.join( |
| 171 | os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data'), |
| 172 | METADATA_FILENAME, |
| 173 | ) |
| 174 | metadata = {} |
| 175 | if os.path.isfile(metadata_file): |
| 176 | with open(metadata_file) as f: |
| 177 | metadata = json.load(f) |
| 178 | return metadata.get('distribution_source', 'other') |
| 179 | |
| 180 | |
| 181 | def _get_distribution(): |
no test coverage detected