[MLton-user] Path of Executable

Adam Chlipala adamc at hcoop.net
Mon Jan 8 16:04:53 PST 2007


 [Apologies for the delay in resending.  adamc at hcoop.net wasn't on the
 whitelist, and slipped through the cracks.  --sweeks]

> Is there a function in any of the libraries available with Mlton for
> getting the path of the executable the program is being run from?  I'm
> interested in platform independent or dependent ways (preferrable the
> former).

How about CommandLine.name combined with OS.FileSys.getDir (to resolve any
relative paths, if that's important for your application)?  Both are part
of the SML Basis.



More information about the MLton-user mailing list