cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to refer to repository directories in Workflows

avesel
New Contributor

Hi

I need to refer to a configuration file which resides in a separate directory than the script. The paths and execution withing a notebook/python files work fine. When script is scheduled and uses code repository the directory names look obfuscated 

[Databricks runtime]
repo dir: /Workspace/Repos/<user>/Python
/config/config.yaml
/tests/test_script.py

[Workflow]
repo dir: Workspace/Repos/.internal/af8a942fc5_commits
/c4e7042bee838df9e01242cc09cc81524cc07f24/config.yaml
/b01e96980f85e154fc22e20c225275216fefde80/test_script.py

How do I refer from within test_script.py and read config.yaml?
Note that directory name changes with each run...

 

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group