summaryrefslogtreecommitdiff
path: root/hid
diff options
context:
space:
mode:
Diffstat (limited to 'hid')
-rw-r--r--hid/patch.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/hid/patch.py b/hid/patch.py
index 24ba2123..73afdec7 100644
--- a/hid/patch.py
+++ b/hid/patch.py
@@ -5,7 +5,9 @@ Import("env")
# =====
-env_path = join(env["PROJECTLIBDEPS_DIR"], env["PIOENV"])
+deps_path = env.get("PROJECT_LIBDEPS_DIR", env.get("PROJECTLIBDEPS_DIR"))
+assert deps_path, deps_path
+env_path = join(deps_path, env["PIOENV"])
flag_path = join(env_path, ".patched")
if not exists(flag_path):