aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/constants.py
diff options
context:
space:
mode:
authorZach White <skullydazed@gmail.com>2021-01-16 15:21:06 -0800
committerZach White <skullydazed@gmail.com>2021-01-16 15:21:06 -0800
commit5abe66674921094c2686b98a4c0d188088e43bb3 (patch)
treee4580fa1e8b29f138e652e2db76e1c5b76646ded /lib/python/qmk/constants.py
parentf35b1127fa3662285f37a12632be385bd84b79d3 (diff)
parentd9785ec31339d7f80279fd3d1005f76689ed2f6a (diff)
downloadqmk_firmware-5abe66674921094c2686b98a4c0d188088e43bb3.tar.gz
qmk_firmware-5abe66674921094c2686b98a4c0d188088e43bb3.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib/python/qmk/constants.py')
-rw-r--r--lib/python/qmk/constants.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/python/qmk/constants.py b/lib/python/qmk/constants.py
index 6a643070f..404a58a7e 100644
--- a/lib/python/qmk/constants.py
+++ b/lib/python/qmk/constants.py
@@ -1,5 +1,6 @@
1"""Information that should be available to the python library. 1"""Information that should be available to the python library.
2""" 2"""
3from os import environ
3from pathlib import Path 4from pathlib import Path
4 5
5# The root of the qmk_firmware tree. 6# The root of the qmk_firmware tree.
@@ -28,3 +29,7 @@ LED_INDICATORS = {
28 'num_lock': 'LED_NUM_LOCK_PIN', 29 'num_lock': 'LED_NUM_LOCK_PIN',
29 'scrol_lock': 'LED_SCROLL_LOCK_PIN', 30 'scrol_lock': 'LED_SCROLL_LOCK_PIN',
30} 31}
32
33# Constants that should match their counterparts in make
34BUILD_DIR = environ.get('BUILD_DIR', '.build')
35KEYBOARD_OUTPUT_PREFIX = f'{BUILD_DIR}/obj_'