Skip to content

Commit

Permalink
before remove, check path
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisewf authored Feb 1, 2025
1 parent eb21d9d commit b9b741d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit b9b741d

Please sign in to comment.