✅ pi_support: Use flag file for local debug mode

This commit is contained in:
Gina Häußge committed 2020-11-03 14:55:43 +01:00
1 parent 7bdda2e2a6
commit 7f4dcaa5f1
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -25,7 +25,9 @@ _VCGENCMD_THROTTLE = "/usr/bin/vcgencmd get_throttled"
_CHECK_INTERVAL_OK = 300
_CHECK_INTERVAL_THROTTLED = 30
__LOCAL_DEBUG = False
__LOCAL_DEBUG = os.path.exists(
os.path.realpath(os.path.join(os.path.dirname(__file__), ".local_debug"))
)
if __LOCAL_DEBUG:
### mocks & settings for local debugging