From 81d47519c287cd1ee472c433813b7153c4db4c59 Mon Sep 17 00:00:00 2001 From: Toki Date: Sun, 22 Dec 2024 11:05:41 +0900 Subject: [PATCH] script path added --- lib/utils/system_util.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/system_util.dart b/lib/utils/system_util.dart index 120e9e1..b33a189 100644 --- a/lib/utils/system_util.dart +++ b/lib/utils/system_util.dart @@ -14,12 +14,14 @@ bool isDebug = true; String userPath = ''; String dataPath = ''; String projectName = ''; +String scriptPath = ''; Future initialize() async { isDebug = path.basename(Platform.resolvedExecutable) == 'dart'; userPath = await Path.userPath; dataPath = await Path.dataPath; projectName = await getProjectName(); + scriptPath = Platform.script.toFilePath(windows: Platform.isWindows); }