Skip to content

Commit 228edc4

Browse files
committed
dont detect dir as executable
1 parent 7430b34 commit 228edc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ fn find_it<P>(exe_name: P) -> Option<PathBuf>
17561756
where
17571757
P: AsRef<Path>,
17581758
{
1759-
(if fs::exists("./kalc-plot").unwrap_or(false) {
1759+
(if fs::exists("./kalc-plot").unwrap_or(false) && !Path::is_dir("./kalc-plot".as_ref()) {
17601760
Some(PathBuf::from("./kalc-plot"))
17611761
} else {
17621762
None

0 commit comments

Comments
 (0)