mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
IDE Command line: using "isAbsolute" instead of "exists" to avoid conflicting with files in IDE install location
This commit is contained in:
parent
d133365cc1
commit
5284c3a3e6
@ -370,7 +370,7 @@ public class Base {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!new File(path).exists()) {
|
if (!new File(path).isAbsolute()) {
|
||||||
path = new File(currentDirectory, path).getAbsolutePath();
|
path = new File(currentDirectory, path).getAbsolutePath();
|
||||||
}
|
}
|
||||||
if (handleOpen(path) != null) {
|
if (handleOpen(path) != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user