How to Get Relative Path of Current Livebook?

Is there a chance to access a file living next to the current livebook ?

If I open a livebook and use Path.absname('./') I get the path where the livebook app started (~/ in my case).

Is there a way to get to /path/to/livebook_dir/ ?

Check __DIR__, might be what you want. Not at computer so can’t check myself.

Thats exactly it. Thank you very much.

Path.absname(__DIR__) returns the /full/path/to/livebook_dir