File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
arduino-core/src/processing/app Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 77import java .io .FileWriter ;
88import java .io .IOException ;
99import java .io .InputStream ;
10+ import java .net .URISyntaxException ;
1011import java .util .*;
1112import java .util .logging .Level ;
1213import java .util .logging .Logger ;
@@ -167,7 +168,11 @@ static public File getContentFile(String name) {
167168 File path = new File (System .getProperty ("user.dir" ));
168169
169170 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+ }
171176 }
172177
173178 return new File (path , name );
You can’t perform that action at this time.
0 commit comments