Skip to content

Commit 46058a5

Browse files
author
Federico Fissore
committed
BaseNoGui.currentDirectory needs to be initialized before anything else
1 parent ad6409d commit 46058a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: arduino-core/src/processing/app/BaseNoGui.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public class BaseNoGui {
3636
public static final String VERSION_NAME = "1.6.6";
3737
public static final String VERSION_NAME_LONG;
3838

39+
// Current directory to use for relative paths specified on the
40+
// commandline
41+
static String currentDirectory = System.getProperty("user.dir");
42+
3943
static {
4044
String versionNameLong = VERSION_NAME;
4145
File hourlyBuildTxt = new File(getContentFile("lib"), "hourlyBuild.txt");
@@ -52,10 +56,6 @@ public class BaseNoGui {
5256

5357
static File buildFolder;
5458

55-
// Current directory to use for relative paths specified on the
56-
// commandline
57-
static String currentDirectory = System.getProperty("user.dir");
58-
5959
private static DiscoveryManager discoveryManager = new DiscoveryManager();
6060

6161
// these are static because they're used by Sketch

0 commit comments

Comments
 (0)