*load-pathname*

[variable] *load-pathname*

SCM: keeps the pathname of the file currently being loaded.

In Gauche, the information can be obtained by

  (port-name (current-load-port))