Skip to content

Commit 6d3ec1f

Browse files
author
Federico Fissore
committed
wrong path name. now using getContentFile function
1 parent 0c31401 commit 6d3ec1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/Base.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ protected String createNewUntitled() throws IOException {
655655
if (!newbieFile.createNewFile()) {
656656
throw new IOException();
657657
}
658-
FileUtils.copyFile(new File(System.getProperty("user.dir"), "examples" + File.separator + "01.Basics" + File.separator + "BareMinimum" + File.separator + "BareMinimum.ino"), newbieFile);
658+
FileUtils.copyFile(new File(getContentFile("examples"), "01.Basics" + File.separator + "BareMinimum" + File.separator + "BareMinimum.ino"), newbieFile);
659659
return newbieFile.getAbsolutePath();
660660
}
661661

0 commit comments

Comments
 (0)