getting the path to the executing program

Tomasz Zielonka t.zielonka at students.mimuw.edu.pl
Thu Jan 8 19:02:04 EST 2004


On Thu, Jan 08, 2004 at 09:06:44AM -0800, Hal Daume III wrote:
> is there a function, related to getProgName, which returns the (absolute) 
> path to the current program?

A non-portable Linux solution:

    System.Posix.readSymbolicLink "/proc/self/exe"

Best regards,
Tom

-- 
.signature: Too many levels of symbolic links


More information about the Haskell mailing list