From b3c073c99b58c454ae32279f83b1d0a5393c89a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Thu, 24 Jun 2021 19:08:45 +0200 Subject: [PATCH] Allow runing full path scripts with `distribute.py` --- TTS/bin/distribute.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TTS/bin/distribute.py b/TTS/bin/distribute.py index 742c0197..e05747d0 100644 --- a/TTS/bin/distribute.py +++ b/TTS/bin/distribute.py @@ -24,7 +24,10 @@ def main(): # set arguments for train.py folder_path = pathlib.Path(__file__).parent.absolute() - command = [os.path.join(folder_path, args.script)] + if os.path.exists(os.path.join(folder_path, args.script)): + command = [os.path.join(folder_path, args.script)] + else: + command = [args.script] command.append("--continue_path={}".format(args.continue_path)) command.append("--restore_path={}".format(args.restore_path)) command.append("--config_path={}".format(args.config_path))