How to get the Eagle ULP file name?
I figured this out.


  Command line arguments are available to the program through the global
  Builtin Variables argc and argv.


So the following renders the file name of the user language program (same as in a C program):

printf(argv[0]);