Unanswered
Hey Guys, Is There A Way To Dynamically Know The Path Of A Cloned Github Project (And Task) Inside A Docker Mode Worker?
I Want To Set The Pythonpath Inside My Docker Worker, So I Can Access Local Modules,
And My Only Problem Is That The Path Depends On T
I don't know about this, but could you turn your whole project into a pip-installable package using a setup.py
and/or pyproject.toml
?
I've never tried this, but maybe then you could do pip install -e .
locally before executing the task. Then execute. And then maybe the pip freeze
that ClearML does would contain the symlink to your directory.
(so that from my_package import ...
statements would work)
179 Views
0
Answers
one year ago
one year ago