Wrong Path Databricks Repos

Ramseths
New Contributor

In a Databricks environment, I have cloned a repository that I have in Azure DevOps Repos, the repository is inside the path:

Workspace/Repos/<user_mail>/my_repo.

Then when I create a Python script that I want to call in a notebook using an import: import myscript it tells me that it does not exist and this is because the path that launches the notebook is the following:

databricks/driver/

However, in another Databricks environment, I did the same exercise and it worked. Even the path I get is this: Workspace/Repos/<user_mail>/my_repo when executing !pwd.

Where can I adjust so that it is not the path databricks driver?

NandiniN
Databricks Employee
Databricks Employee

Hi @Ramseths ,

If your notebook and script are in the same path, it would have picked the same relative path.
Is your notebook located in /databricks/driver?
Thanks!