File tree 1 file changed +6
-1
lines changed
arduino-core/src/processing/app
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 7
7
import java .io .FileWriter ;
8
8
import java .io .IOException ;
9
9
import java .io .InputStream ;
10
+ import java .net .URISyntaxException ;
10
11
import java .util .*;
11
12
import java .util .logging .Level ;
12
13
import java .util .logging .Logger ;
@@ -167,7 +168,11 @@ static public File getContentFile(String name) {
167
168
File path = new File (System .getProperty ("user.dir" ));
168
169
169
170
if (OSUtils .isMacOS ()) {
170
- path = new File (BaseNoGui .class .getProtectionDomain ().getCodeSource ().getLocation ().getPath ()).getParentFile ();
171
+ try {
172
+ path = new File (BaseNoGui .class .getProtectionDomain ().getCodeSource ().getLocation ().toURI ().getPath ()).getParentFile ();
173
+ } catch (URISyntaxException e ) {
174
+ throw new RuntimeException (e );
175
+ }
171
176
}
172
177
173
178
return new File (path , name );
You can’t perform that action at this time.
0 commit comments