I'm deploying a new workspace for testing the deployed notebooks. But when trying to import the python files as module in the newly deployed workspace, I'm getting an error saying "function not found".
Two points to note here:
1. If I append absolute path of the python file to the sys path, it runs fine. But when I append relative path, it throws "not found" error (Relative path is not able to pick workspace's path correctly)
2. If the python file and the notebook are in a same directory, it works fine
I know I can use files in repos to fix this but is it possible to do this using workspace only ?
NOTE:
In the deployed workspace ,The cwd of the file i want to import is in this format : /home/spark-9851f...-....-....-....-.. (not aligned with the folder structure)
But when working with repos, the cwd is correct and is aligned with the folder structure