Also if you can guarantee the file being run is open, you could use _file_path(p_buf_name). I do this in my macro that sets my configuration (most of us here have one since we work in so many editors). Mine actually insures that the file dansetup.e is the current file and then uses that path for some other things. Very hacky, but works for personal use.