From 7170296162efbad25f7d0b7be5969bdfbb15df49 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Sun, 4 Oct 2020 19:32:48 +0300 Subject: [PATCH] Remove warning on '.' (same as an empty working directory) --- trains_agent/commands/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trains_agent/commands/worker.py b/trains_agent/commands/worker.py index 78956ed..b856fb5 100644 --- a/trains_agent/commands/worker.py +++ b/trains_agent/commands/worker.py @@ -157,7 +157,7 @@ class LiteralScriptManager(object): if repo_info and repo_info.root: location = Path(repo_info.root, execution.working_dir) else: - if execution.working_dir: + if execution.working_dir and execution.working_dir.strip() != '.': log.warning( "found task with `script.working_dir` (`%s`) but without `script.repository`, ignoring", execution.working_dir,