diff --git a/os/src-native/package.scala b/os/src-native/package.scala index 9f834eff..807a40b3 100644 --- a/os/src-native/package.scala +++ b/os/src-native/package.scala @@ -16,10 +16,12 @@ package object os { path } + private lazy val _home = Path(System.getProperty("user.home")) + /** * The user's home directory */ - def home: Path = Path(System.getProperty("user.home")) + def home: Path = _home /** * The current working directory for this process.