Skip to content

Commit b8bf40e

Browse files
authored
Avoid computing _get_default_distrib_path when QMK_DISTRIB_DIR is set (qmk#26339)
1 parent a738fad commit b8bf40e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/python/qmk/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _get_default_distrib_path():
2828

2929

3030
# 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()))
31+
QMK_DISTRIB_DIR = Path(os.environ['QMK_DISTRIB_DIR'] if 'QMK_DISTRIB_DIR' in os.environ else _get_default_distrib_path())
3232
if QMK_DISTRIB_DIR.exists():
3333
os.environ['PATH'] = str(QMK_DISTRIB_DIR / 'bin') + os.pathsep + os.environ['PATH']
3434

0 commit comments

Comments
 (0)