summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chain/src/item/genins.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/chain/src/item/genins.rs b/chain/src/item/genins.rs
index e409c3c..ce34df9 100644
--- a/chain/src/item/genins.rs
+++ b/chain/src/item/genins.rs
@@ -211,7 +211,11 @@ impl DefaultForest<ForestLabel<GrammarLabel>> {
// Whether or not to print detailed graphs of each step of
// operation for debugging purposes.
- let to_print = true;
+ let mut to_print = true;
+
+ if std::fs::metadata(format!("output/")).is_err() {
+ to_print = false;
+ }
let tnt_string = {
let empty_p = atom_child_iter.len() == 0;