From 5284c3a3e678079e0942d779840151af6c887460 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Mon, 28 Oct 2013 12:50:17 +0100 Subject: [PATCH] IDE Command line: using "isAbsolute" instead of "exists" to avoid conflicting with files in IDE install location --- app/src/processing/app/Base.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 7162c3841..7086854ec 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -370,7 +370,7 @@ public class Base { e.printStackTrace(); } } - if (!new File(path).exists()) { + if (!new File(path).isAbsolute()) { path = new File(currentDirectory, path).getAbsolutePath(); } if (handleOpen(path) != null) {