Skip to content

Commit

Permalink
Add setup, clone, and env to the list of commands we allow even with …
Browse files Browse the repository at this point in the history
…broken modules (qmk#12868)
  • Loading branch information
skullydazed authored and mechlovin committed Jul 30, 2021
1 parent ca960bb commit 2d0d59c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/python/qmk/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@
]


import_names = {
# A mapping of package name to importable name
'pep8-naming': 'pep8ext_naming',
'pyusb': 'usb.core',
}

safe_commands = [
# A list of subcommands we always run, even when the module imports fail
'clone',
'config',
'env',
'setup',
]


def _run_cmd(*command):
"""Run a command in a subshell.
"""
Expand Down

0 comments on commit 2d0d59c

Please sign in to comment.