Fix current path in compiled program

This commit is contained in:
Râu Cao 2024-10-23 00:31:13 +02:00
parent 46ad9813eb
commit 52d56c387d
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -2,7 +2,7 @@ import { load } from "@std/dotenv";
import { parse } from "jsr:@std/yaml";
import { log } from "./log.ts";
const dirname = new URL(".", import.meta.url).pathname;
const dirname = Deno.cwd();
await load({ envPath: `${dirname}/.env`, export: true });
let staticUsers: { [key: string]: string } = {};