executablePath 추가

This commit is contained in:
Toki 2024-12-22 11:08:42 +09:00
parent 81d47519c2
commit 35081e3ec4

View file

@ -15,6 +15,7 @@ String userPath = '';
String dataPath = '';
String projectName = '';
String scriptPath = '';
String executablePath = '';
Future initialize() async {
isDebug = path.basename(Platform.resolvedExecutable) == 'dart';
@ -22,6 +23,7 @@ Future initialize() async {
dataPath = await Path.dataPath;
projectName = await getProjectName();
scriptPath = Platform.script.toFilePath(windows: Platform.isWindows);
executablePath = Platform.executable;
}