1 parent 7430b34 commit 228edc4Copy full SHA for 228edc4
1 file changed
src/main.rs
@@ -1756,7 +1756,7 @@ fn find_it<P>(exe_name: P) -> Option<PathBuf>
1756
where
1757
P: AsRef<Path>,
1758
{
1759
- (if fs::exists("./kalc-plot").unwrap_or(false) {
+ (if fs::exists("./kalc-plot").unwrap_or(false) && !Path::is_dir("./kalc-plot".as_ref()) {
1760
Some(PathBuf::from("./kalc-plot"))
1761
} else {
1762
None
0 commit comments