_get_default_distrib_path
1 parent a738fad commit b8bf40eCopy full SHA for b8bf40e
1 file changed
lib/python/qmk/cli/__init__.py
@@ -28,7 +28,7 @@ def _get_default_distrib_path():
28
29
30
# Ensure the QMK distribution is on the `$PATH` if present. This must be kept in sync with qmk/qmk_cli.
31
-QMK_DISTRIB_DIR = Path(os.environ.get('QMK_DISTRIB_DIR', _get_default_distrib_path()))
+QMK_DISTRIB_DIR = Path(os.environ['QMK_DISTRIB_DIR'] if 'QMK_DISTRIB_DIR' in os.environ else _get_default_distrib_path())
32
if QMK_DISTRIB_DIR.exists():
33
os.environ['PATH'] = str(QMK_DISTRIB_DIR / 'bin') + os.pathsep + os.environ['PATH']
34
0 commit comments