Fix current path in compiled program

This commit is contained in:
2024-10-23 00:31:13 +02:00
parent 46ad9813eb
commit 52d56c387d

View File

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