Fix current path in compiled program
This commit is contained in:
parent
46ad9813eb
commit
52d56c387d
@ -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 } = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user