Skip to content

Commit

Permalink
Default to current working directory if no appdir is provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
samskivert committed Apr 10, 2019
1 parent f2f418f commit 8d59367
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/main/java/com/threerings/getdown/data/EnvConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ public static EnvConfig create (String[] argv, List<Note> notes) {
}
}

// ensure that we were able to fine an app dir
// if no appdir was provided, default to the current working directory
if (appDir == null) {
return null; // caller will report problem to user
appDir = System.getProperty("user.dir");
appDirProv = "default (cwd)";
}

notes.add(Note.info("Using appdir from " + appDirProv + ": " + appDir));
Expand Down

0 comments on commit 8d59367

Please sign in to comment.