Always use app root for resource URIs (avoid usage of require)

This commit is contained in:
Alex Dima
2022-11-08 17:24:24 +01:00
parent 57f489b487
commit 192c67db71
41 changed files with 112 additions and 97 deletions
+1 -1
View File
@@ -496,7 +496,7 @@ export async function main(argv: string[]): Promise<any> {
}
function getAppRoot() {
return dirname(FileAccess.asFileUri('', require).fsPath);
return dirname(FileAccess.asFileUri('').fsPath);
}
function eventuallyExit(code: number): void {