diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/qmk | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -27,7 +27,8 @@ def _check_modules(requirements): | |||
| 27 | line = line.split('#')[0] | 27 | line = line.split('#')[0] |
| 28 | 28 | ||
| 29 | module = dict() | 29 | module = dict() |
| 30 | module['name'] = module['import'] = line.split('=')[0] if '=' in line else line | 30 | module['name'] = line.split('=')[0] if '=' in line else line |
| 31 | module['import'] = module['name'].replace('-', '_') | ||
| 31 | 32 | ||
| 32 | # Not every module is importable by its own name. | 33 | # Not every module is importable by its own name. |
| 33 | if module['name'] == "pep8-naming": | 34 | if module['name'] == "pep8-naming": |
