From 64b634c0063a240485f6518bf9052ea0178be39c Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 7 Jun 2026 20:12:35 +0200 Subject: [PATCH] refactor: move default file outside of demo dir --- pack.sh | 1 + demo/tongue-twister.txt => tongue-twister.txt | 0 tts.py | 4 ++-- 3 files changed, 3 insertions(+), 2 deletions(-) rename demo/tongue-twister.txt => tongue-twister.txt (100%) diff --git a/pack.sh b/pack.sh index add1165..f35d27c 100644 --- a/pack.sh +++ b/pack.sh @@ -5,6 +5,7 @@ tar --exclude=".*" \ --exclude="node_modules" \ --exclude="outputs" \ --exclude="inputs" \ + --exclude="demo" \ -cvzf $FILENAME simple-tts/ mv $FILENAME simple-tts/ cd simple-tts diff --git a/demo/tongue-twister.txt b/tongue-twister.txt similarity index 100% rename from demo/tongue-twister.txt rename to tongue-twister.txt diff --git a/tts.py b/tts.py index b019613..4463855 100755 --- a/tts.py +++ b/tts.py @@ -43,7 +43,7 @@ prep_texts = [ ] dir_path = os.path.expanduser('~') -installed_demo_file = f"{dir_path}/.local/lib/simple-tts/demo/tongue-twister.txt" +installed_demo_file = f"{dir_path}/.local/lib/simple-tts/tongue-twister.txt" def parse_args(): parser = argparse.ArgumentParser(description="Simple TTS - machine learning text-to-speech for your terminal", allow_abbrev=False) @@ -177,7 +177,7 @@ def main(): if not default_exists: script_dir = os.path.dirname(os.path.realpath(__file__)) - file_path = os.path.join(script_dir, 'demo/tongue-twister.txt') + file_path = os.path.join(script_dir, 'tongue-twister.txt') print(f"Using demo file: {file_path}") if os.path.isfile(file_path):