Fix python 3.6 compatibility, no := operator

This commit is contained in:
clearml 2025-01-05 12:13:21 +02:00
parent 47d35ef48f
commit 070919973b

View File

@ -75,7 +75,8 @@ class UvConfig:
if self.session and self.session.config and args and args[0] == "sync":
# Set the cache dir to venvs dir
if (cache_dir := self.session.config.get("agent.venvs_dir", None)) is not None:
cache_dir = self.session.config.get("agent.venvs_dir", None)
if cache_dir is not None:
os.environ["UV_CACHE_DIR"] = cache_dir
extra_args = self.session.config.get(