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