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 ~
Afficher les réponses par date
(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@iro.umontreal.ca http://mailman.iro.umontreal.ca/mailman/listinfo/gambit-list