Skip to content

Commit

Permalink
fix: bad default ttsCachePath with tripple dots : use folder in homedir
Browse files Browse the repository at this point in the history
  • Loading branch information
jersou committed Dec 17, 2024
1 parent d84e8da commit 7ab09f5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion studio_pack_generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { openGui } from "./gui/gui.ts";
import { generatePack } from "./gen_pack.ts";
import type { CustomModule } from "./types.ts";
import { OPEN_AI_MODELS, OPEN_AI_VOICES } from "./types.ts";
import { homedir } from "node:os";

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

Expand Down Expand Up @@ -175,7 +176,7 @@ export class StudioPackGenerator {

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

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

0 comments on commit 7ab09f5

Please sign in to comment.