[gambit-list] Directory of executable?
Marc Feeley
feeley at iro.umontreal.ca
Thu Dec 15 17:28:00 EST 2005
(car (command-line))
If you want the absolute path: (path-expand (car (command-line)))
Note that for a script, this will be the path to the script.
Marc
On 15-Dec-05, at 4:31 PM, TJay wrote:
> How do I get the path to the directory that contains the executable
> file of my program? If I was coding in C, under Linux, I'd get the
> path as argv[0] in my main() function.
> --
> ~ TJay ~
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> http://mailman.iro.umontreal.ca/mailman/listinfo/gambit-list
More information about the Gambit-list
mailing list