fix pytest in qmkfm/base_container

This commit is contained in:
skullY
2019-11-11 13:03:39 -08:00
parent 0783864629
commit 177fa55bce
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -56,7 +56,10 @@ def find_qmk_firmware():
return Path(milc.cli.config.user.qmk_home).expanduser().resolve()
if 'QMK_HOME' in os.environ:
return Path(os.environ['QMK_HOME']).expanduser().resolve()
path = Path(os.environ['QMK_HOME']).expanduser()
if path.exists():
return path.resolve()
return path
return Path.home() / 'qmk_firmware'
+2 -1
View File
@@ -44,6 +44,7 @@ if __name__ == "__main__":
"appdirs",
"argcomplete",
"colorama",
"hjson"
"hjson",
"yapf"
],
)