Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a777c5de9 | |||
| c51c898562 | |||
| 08ea23b087 | |||
| 0105405d83 | |||
| 92c57e2a46 |
+1
-1
@@ -1,3 +1,3 @@
|
||||
"""A program to help you work with qmk_firmware."""
|
||||
|
||||
__version__ = '0.0.34'
|
||||
__version__ = '0.0.35'
|
||||
|
||||
+1
-1
@@ -33,4 +33,4 @@ def question(question, boolean=True, default=''):
|
||||
elif answer.lower() in ['n', 'no']:
|
||||
return False
|
||||
else:
|
||||
cli.args.echo('Invalid answer!')
|
||||
cli.echo('Invalid answer!')
|
||||
|
||||
@@ -30,7 +30,12 @@ def in_qmk_firmware():
|
||||
cur_dir = Path.cwd()
|
||||
while len(cur_dir.parents) > 0:
|
||||
found_bin = cur_dir / 'bin' / 'qmk'
|
||||
if found_bin.is_file():
|
||||
# An additional check for something that exists in the root of qmk_firmware,
|
||||
# but not in the script's install directory, to avoid recursive execution,
|
||||
# if started from install directory.
|
||||
# e.g.: cd ~/.local/bin && ./qmk
|
||||
found_quantum = cur_dir / 'quantum'
|
||||
if found_bin.is_file() and found_quantum.is_dir():
|
||||
command = [sys.executable, found_bin.as_posix()]
|
||||
result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user