Hey, I have another question, now about the
PYTHONPATH and its relationship to repo root.
Let's say I have the following repo structute:
├── projects │ └── project_a │ └── main.py └── utils └── utils.pyThe
main.py contains some dependencies that are imported from
utils.py . I also have a remote agent running in docker.
If I submit this script using
clearml-task , everything runs correctly, the working dir is set to the repo root, then the working dir is added to
PYTHONPATH and the util dependencies are found when
main.py is executed.
However, if I submit the
.execute_remotely() by running the script locally, there is an error. The working dir is set to
projects/project_a , and repo root is not added to
PYTHONPATH , only the working dir is added. Because of this, imports of dependencies from
Dependencies are found if I manually add
CLEARML_AGENT_EXTRA_PYTHON_PATH=/root/.clearml/venvs-builds/3.8/task_repository/repo_name.git in the
clearml.conf for the agent.
Am I missing a step, is there an automatic way to add the repo root to
PYTHONPATH when running