Update qmk_cli/script_qmk.py

Co-Authored-By: Erovia <Erovia@users.noreply.github.com>
This commit is contained in:
skullydazed
2020-04-11 10:20:56 -07:00
parent a03aa1cbba
commit 1002360e20
+6 -4
View File
@@ -82,10 +82,12 @@ def main():
if qmk_firmware.exists():
os.chdir(str(qmk_firmware))
sys.path.append(str(qmk_firmware / 'lib' / 'python'))
try:
import qmk.cli
except ImportError:
pass # Ingore as this might folder might not be set up correctly
try:
import qmk.cli
except ImportError:
print('Error: %s is too old or not set up correctly!' % qmk_firmware)
print('Please update it or remove it completely before continuing.')
sys.exit(1)
# Call the entrypoint
milc.cli()