From 7d336ec429468aef8e7df8aee5bf5b8518ad6beb Mon Sep 17 00:00:00 2001 From: Maciej Gajek Date: Tue, 21 Nov 2023 11:14:21 +0100 Subject: [PATCH] Make os.home a lazy val --- os/src-jvm/package.scala | 2 +- os/src-native/package.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/os/src-jvm/package.scala b/os/src-jvm/package.scala index b0414bdf..15c12552 100644 --- a/os/src-jvm/package.scala +++ b/os/src-jvm/package.scala @@ -26,7 +26,7 @@ package object os { /** * The user's home directory */ - val home: Path = Path(System.getProperty("user.home")) + lazy val home: Path = Path(System.getProperty("user.home")) /** * The current working directory for this process. diff --git a/os/src-native/package.scala b/os/src-native/package.scala index dcaaa4e7..f700477c 100644 --- a/os/src-native/package.scala +++ b/os/src-native/package.scala @@ -19,7 +19,7 @@ package object os { /** * The user's home directory */ - val home: Path = Path(System.getProperty("user.home")) + lazy val home: Path = Path(System.getProperty("user.home")) /** * The current working directory for this process.