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

2009-03-25 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: (very old message I found in an anti-spam box, about paramstr(0) and maintaining configuration files relative to it) In a sense, this is no problem because on Unix-like platforms you are not supposed to use the fact where a binary is located in the

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

2009-02-06 Thread Jonas Maebe
Travis Siegel wrote on vr, 06 feb 2009: On Feb 5, 2009, at 4:00 PM, Jonas Maebe wrote: On 05 Feb 2009, at 22:52, Paul Nicholls wrote: MyProgramFolder := ExtractFilePath(ParamStr(0)); This should hopefully get you the folder of the currently running program from within the program (at least

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

2009-02-06 Thread Travis Siegel
On Feb 5, 2009, at 4:00 PM, Jonas Maebe wrote: On 05 Feb 2009, at 22:52, Paul Nicholls wrote: MyProgramFolder := ExtractFilePath(ParamStr(0)); This should hopefully get you the folder of the currently running program from within the program (at least under Win32 and Linux). That is

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

2009-02-05 Thread Paul Nicholls
Ken G. Brown kbrown-ee4meeah...@public.gmane.org wrote in message news:p06240407c5b049e88...@[10.0.1.199]... 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

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

2009-02-05 Thread Jonas Maebe
On 05 Feb 2009, at 23:00, Jonas Maebe wrote: On 05 Feb 2009, at 22:52, Paul Nicholls wrote: Maybe I haven't understood you completely, but have you tried this? MyProgramFolder := ExtractFilePath(ParamStr(0)); This should hopefully get you the folder of the currently running program from