From b9b741d6629633ecc81d738b541ff46e9266ae7e Mon Sep 17 00:00:00 2001 From: Pascal Aznar Date: Sat, 1 Feb 2025 14:33:59 +0100 Subject: [PATCH] before remove, check path --- core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.py b/core.py index f45edb4e..1fa04c55 100644 --- a/core.py +++ b/core.py @@ -351,7 +351,7 @@ def run_tts_script( tts_script_path = os.path.join("rvc", "lib", "tools", "tts.py") - if os.path.exists(output_tts_path): + if os.path.exists(output_tts_path) and os.path.abspath(output_tts_path).startswith(os.path.abspath("assets")): os.remove(output_tts_path) command_tts = [