A simple module that sets two system variables whenever a file is run:

RunDir$Dir
RunDir$Path

These are set to the directory that the file being run is in.

-----

Free of charge, free to distribute or modify.
Graeme Shrimpton, Dec 2024