From 8d5936774250b9b1845ce23a85dab3372d4046d1 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 10 Apr 2019 11:35:55 -0700 Subject: [PATCH] Default to current working directory if no appdir is provided. --- .../src/main/java/com/threerings/getdown/data/EnvConfig.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/threerings/getdown/data/EnvConfig.java b/core/src/main/java/com/threerings/getdown/data/EnvConfig.java index 6de4e2e..1d66ebb 100644 --- a/core/src/main/java/com/threerings/getdown/data/EnvConfig.java +++ b/core/src/main/java/com/threerings/getdown/data/EnvConfig.java @@ -139,9 +139,10 @@ public final class EnvConfig { } } - // 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));