From f730e3a6a41aa49b099620acf7bd2a1d4c419091 Mon Sep 17 00:00:00 2001 From: pskvins Date: Thu, 30 Jan 2025 16:11:09 +0900 Subject: [PATCH] Removed python-related lines --- src/envs/variables.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/envs/variables.rs b/src/envs/variables.rs index 577a668..af83a35 100644 --- a/src/envs/variables.rs +++ b/src/envs/variables.rs @@ -74,15 +74,6 @@ pub fn locate_path_cfg() -> String { err::error(err::ERR_GENERAL, Some("Could not locate path.cfg".to_string())); } } -pub fn locate_encoder_py() -> String { - if File::open(format!("{}{}etc{}predict_3Di_encoderOnly.py", parent_dir(), SEP, SEP)).is_ok() { - format!("{}{}etc{}predict_3Di_encoderOnly.py", parent_dir(), SEP, SEP) - } else if File::open(format!("{}{}src{}py{}predict_3Di_encoderOnly.py", src_parent_dir(), SEP, SEP, SEP)).is_ok() { - format!("{}{}src{}py{}predict_3Di_encoderOnly.py", src_parent_dir(), SEP, SEP, SEP) - } else { - err::error(err::ERR_GENERAL, Some("Could not locate path.cfg".to_string())); - } -} // binary paths const VALID_BINARY: [&str; 7] = [