瀏覽代碼

kle2json: fix invocation error

resolves an issue while finding the file path

TypeError: unsupported operand type(s) for +: 'PosixPath' and 'str'
Keenan Brock 5 年之前
父節點
當前提交
a47915d2d2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/python/qmk/cli/kle2json.py

+ 1 - 1
lib/python/qmk/cli/kle2json.py

@@ -69,7 +69,7 @@ def kle2json(cli):
     # Replace layout in keyboard json
     keyboard = keyboard.replace('"LAYOUT_JSON_HERE"', layout)
     # Write our info.json
-    file = open(out_path + "/info.json", "w")
+    file = open(out_path / "info.json", "w")
     file.write(keyboard)
     file.close()
     cli.log.info('Wrote out {fg_cyan}%s/info.json', out_path)