From 88052521eba5721809c472aab5bfae8a95e00956 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 21 Jul 2023 11:41:00 +0800 Subject: genins: Use relative file path for printing forests. * chain/src/item/genins.rs: The absolute path is too long and unnecessary. --- chain/src/item/genins.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'chain') diff --git a/chain/src/item/genins.rs b/chain/src/item/genins.rs index 0de7198..bad0cfd 100644 --- a/chain/src/item/genins.rs +++ b/chain/src/item/genins.rs @@ -211,7 +211,7 @@ impl DefaultForest> { // Whether or not to print detailed graphs of each step of // operation for debugging purposes. - let mut to_print = true; + let mut to_print = false; if std::fs::metadata("output/").is_err() { to_print = false; @@ -235,11 +235,7 @@ impl DefaultForest> { let num = { let mut repetition = 0; - while std::fs::metadata(format!( - "/Users/durand/Desktop/Centre/A propos de programmes/Rust/rep/chain/output/pos {pos} - {repetition}.gv" - )) - .is_ok() - { + while std::fs::metadata(format!("output/pos {pos} - {repetition}.gv")).is_ok() { repetition += 1; } -- cgit v1.2.3-18-g5258