Build Absolute path to rules dir for testing
()
| 19 | |
| 20 | /// Build Absolute path to rules dir for testing |
| 21 | pub fn abs_rules_dir_path() -> String { |
| 22 | return std::env::current_exe().unwrap().parent().unwrap() |
| 23 | .join("../../../Rules") |
| 24 | .to_str().unwrap().to_string(); |
| 25 | } |
| 26 | |
| 27 | |
| 28 | // Strip spaces from 'str' so comparison doesn't need to worry about spacing |