Skip to content

Commit 7ab09f5

Browse files
committed
fix: bad default ttsCachePath with tripple dots : use folder in homedir
1 parent d84e8da commit 7ab09f5

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

deno.lock

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

studio_pack_generator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { openGui } from "./gui/gui.ts";
1717
import { generatePack } from "./gen_pack.ts";
1818
import type { CustomModule } from "./types.ts";
1919
import { OPEN_AI_MODELS, OPEN_AI_VOICES } from "./types.ts";
20+
import { homedir } from "node:os";
2021

2122
// CLI of https://github.com/jersou/studio-pack-generator
2223

@@ -175,7 +176,7 @@ export class StudioPackGenerator {
175176

176177
@help("path to the TTS cache")
177178
@defaultHelp("<Studio-Pack-Generator dir>/.spg-TTS-cache")
178-
ttsCachePath = ".../Studio-Pack-Generator/.spg-TTS-cache";
179+
ttsCachePath: string = `${homedir}/.Studio-Pack-Generator/TTS-cache`;
179180

180181
@type("string")
181182
@help("custom script to be used for custom image... handling")

0 commit comments

Comments
 (0)