[fpc-pascal] specifying the relative path to a file that is located in the same folder as the application bundle?

Ken G. Brown kbrown at mac.com
Thu Feb 5 08:54:41 CET 2009


MacOS X, 10.5.6, fpc 2.2.2

How can I find the directory path to the executable of the currently executing program from within the program?

Or alternately, how can I specify the relative path to a file that is located in the same folder as the application bundle for my currently executing program?

Using ./filename does not appear to work for me.

Are there file and directory type utilities available? Where can I read up on them?

Thx for any tips,
Ken G. Brown



More information about the fpc-pascal mailing list