Skip to content

Commit

Permalink
Add utility to fetch working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Aug 28, 2013
1 parent 4c7e0d7 commit 04ae521
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -55,6 +55,14 @@ public static boolean isLinux()
return getOsName().startsWith("Linux") || getOsName().startsWith("linux");
}

/**
* Get the directory from which this application was launched.
*/
public static File getWorkingDir()
{
return new File(System.getProperty("user.dir"));
}

/**
* Get the FORGE_HOME directory as a {@link File}.
*/
Expand Down

0 comments on commit 04ae521

Please sign in to comment.