summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-06-23 19:58:48 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-06-23 21:18:22 +0100
commitf991e804e36c08ce422eedc6628192aeccbfc9fc (patch)
tree45576cf7394f7797434f623d80e10acdf880b97e
parentMove getSpoon (diff)
downloadtoy-f991e804e36c08ce422eedc6628192aeccbfc9fc.zip
Debug when loading modules
-rw-r--r--scripts/toy.groovy3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 597433e..89344ef 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -62,6 +62,9 @@ return new Object() {
new File("$DATAFOLDER/scripts/toy")
.listFiles()
.each({s ->
+ if (stateIs("DEBUG")) {
+ show("Leading $s...");
+ }
Eval.me(s.text)(toy);
});
};