From 48851630fb7553f3d3f45d96883d01d5eff0ed96 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Wed, 29 Nov 2023 06:16:50 +1100 Subject: [PATCH] Attempt to fix configurator. --- qmk_compiler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qmk_compiler.py b/qmk_compiler.py index 98ef6e5..da473e1 100644 --- a/qmk_compiler.py +++ b/qmk_compiler.py @@ -1,5 +1,6 @@ import json import logging +import os import sys from io import BytesIO from os import chdir, environ, path, remove @@ -162,6 +163,7 @@ def compile_json(keyboard_keymap_data, source_ip=None, send_metrics=True, public if './lib/python' not in sys.path: sys.path.append('./lib/python') + os.environ.set('ORIG_CWD', str(QMK_FIRMWARE_PATH)) from qmk.info import info_json # If this keyboard needs a submodule check it out