diff --git a/libraries/deno-teencrypt-mod.ts b/libraries/deno-teencrypt-mod.ts index 5b5ed97..8f687e1 100644 --- a/libraries/deno-teencrypt-mod.ts +++ b/libraries/deno-teencrypt-mod.ts @@ -1,14 +1,15 @@ import { decodeBase64Url, encodeBase64Url, - getHomeDirOrDie, hexStringToUint8Array, + resolveFilename, } from "https://global.hatter.ink/script/get/@9/deno-commons-mod.ts"; import {getRandomValues} from "node:crypto"; import {assertEquals} from "jsr:@std/assert"; -const COMMONS_LOCAL_ENCRYPT_TINY_ENCRYPT_MASTER_KEY_FILE = getHomeDirOrDie() + - "/.cache/commons-local-encrypt-tiny-encrypt-master-key"; +const COMMONS_LOCAL_ENCRYPT_TINY_ENCRYPT_MASTER_KEY_FILE = resolveFilename( + "~/.cache/commons-local-encrypt-tiny-encrypt-master-key", +); interface TinyEncryptSimpleDecryptObject { code: number; diff --git a/python-ts/main.ts b/python-ts/main.ts index e432cba..e7ec5fc 100644 --- a/python-ts/main.ts +++ b/python-ts/main.ts @@ -3,7 +3,23 @@ const PYTHON_CONFIG_FILE = "~/.config/python-config.json"; interface PythonConfig { - // TODO + default_version?: string; + default_profile?: string; + python_venv_base_path?: string; + versions: Map; + profiles?: Map; +} + +interface PythonVersion { + version: string; + path: string; + comment?: string; +} + +interface PythonVenv { + version: string; + path: string; + comment?: string; } async function main() {