mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-26 20:54:22 +01:00
wrong path name. now using getContentFile function
This commit is contained in:
parent
0c31401fd4
commit
6d3ec1fbe5
@ -655,7 +655,7 @@ public class Base {
|
|||||||
if (!newbieFile.createNewFile()) {
|
if (!newbieFile.createNewFile()) {
|
||||||
throw new IOException();
|
throw new IOException();
|
||||||
}
|
}
|
||||||
FileUtils.copyFile(new File(System.getProperty("user.dir"), "examples" + File.separator + "01.Basics" + File.separator + "BareMinimum" + File.separator + "BareMinimum.ino"), newbieFile);
|
FileUtils.copyFile(new File(getContentFile("examples"), "01.Basics" + File.separator + "BareMinimum" + File.separator + "BareMinimum.ino"), newbieFile);
|
||||||
return newbieFile.getAbsolutePath();
|
return newbieFile.getAbsolutePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user