script path added

This commit is contained in:
Toki 2024-12-22 11:05:41 +09:00
parent 76c378b77a
commit 81d47519c2

View file

@ -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);
}