Before switching to a server app, my standalone bokeh script used
os.path.dirname(sys.argv) to access the directory where it was located. Now I am doing
bokeh serve path/to/single_file_app.py --args arg1 arg2 .. argn and
sys.argv just contains
single_file_app.py, since the server strips the path from its argument. Is there a way to access
path/to/ without passing it as an extra argument?