Duy
New Contributor II

Found a work around:

``` Python

import os

notebook_dir = os.path.dirname(dbutils.notebook.entry_point.getDbutils().notebook().getContext().notebookPath().get())

notebook_dir = "/Workspace" + notebook_dir

current_dir = os.getcwd()

if current_dir != notebook_dir:

    print(f"Switching current dir to: {notebook_dir}")

    os.chdir(notebook_dir)

```