✅ pi_support: Use flag file for local debug mode
This commit is contained in:
1 parent
7bdda2e2a6
commit
7f4dcaa5f1
2 files changed
+4
-1
No files matched your search
@@ -2,6 +2,7 @@ src/octoprint/templates/_data/AUTHORS.md
|
||||
src/octoprint/templates/_data/CHANGELOG.md
|
||||
src/octoprint/templates/_data/SUPPORTERS.md
|
||||
src/octoprint/templates/_data/THIRDPARTYLICENSES.md
|
||||
src/octoprint/plugins/pi_support/.local_debug
|
||||
docs/_build
|
||||
|
||||
devtools
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user