@current_load_directory()

returns a string which is the directory part of the path used to load the program.

See also @pwd, @read_directory and