mirror of
https://github.com/clearml/clearml-agent
synced 2025-02-07 05:19:17 +00:00
Fix python 3.6 compatibility, no :=
operator
This commit is contained in:
parent
47d35ef48f
commit
070919973b
@ -75,7 +75,8 @@ class UvConfig:
|
|||||||
|
|
||||||
if self.session and self.session.config and args and args[0] == "sync":
|
if self.session and self.session.config and args and args[0] == "sync":
|
||||||
# Set the cache dir to venvs dir
|
# 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
|
os.environ["UV_CACHE_DIR"] = cache_dir
|
||||||
|
|
||||||
extra_args = self.session.config.get(
|
extra_args = self.session.config.get(
|
||||||
|
Loading…
Reference in New Issue
Block a user