
I have a bokeh serve directory app.
I can serve images by putting them into static/img/myimage.png and using this path e.g. in TOOLTIPS as an @path.
However, I would also need to read some external data into the backend. As I understand it, the static folder gets hosted to the frontend (html) and is not accessible for the Python backend, is that correct? e.g. I cannot do os.listdir("my_app/static/my_data")?
I know that I can use absolute paths to load the data into Python, however, this means that I need to change the path everytime the users changes the location of the bokeh app. Is there any way to use relative paths in the backend? (Sorry if this terminology is slightly incorrect)

