From 357edcdd6b8724648f0addecbaf3842d7b67b904 Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Sat, 3 Feb 2024 04:09:14 +0530 Subject: [PATCH] Prevent error in rclone detect --- cm-mlops/script/download-file/customize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cm-mlops/script/download-file/customize.py b/cm-mlops/script/download-file/customize.py index 9e6812422d..04b4606d6c 100644 --- a/cm-mlops/script/download-file/customize.py +++ b/cm-mlops/script/download-file/customize.py @@ -109,7 +109,7 @@ def preprocess(i): elif tool == "rclone": if env.get('CM_RCLONE_CONFIG_CMD', '') != '': env['CM_DOWNLOAD_CONFIG_CMD'] = env['CM_RCLONE_CONFIG_CMD'] - env['CM_DOWNLOAD_CMD'] = f"rclone copy {url} ./{env['CM_DOWNLOAD_FILENAME']} -P" + env['CM_DOWNLOAD_CMD'] = f"rclone copy {url} {os.path.join(os.getcwd(), os.env['CM_DOWNLOAD_FILENAME'])} -P" filename = env['CM_DOWNLOAD_FILENAME'] env['CM_DOWNLOAD_DOWNLOADED_FILENAME'] = filename