From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,814d0ec938d6e4da X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-25 16:31:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!sfo2-feed1.news.algx.net!allegiance!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!news.cesnet.cz!crax.cesnet.cz!news.felk.cvut.cz!not-for-mail From: "Sergey Koshcheyev" Newsgroups: comp.lang.ada Subject: Re: How to find directory where the program is? Date: Fri, 26 Apr 2002 01:28:19 +0200 Organization: Czech Technical University Message-ID: References: <3CC6D15A.2070509@mail.com> <3cc73115.426446486@news.cis.dfn.de> <3cc866f9.71682376@news.cis.dfn.de> NNTP-Posting-Host: m232.dkm.cz X-Trace: ns.felk.cvut.cz 1019777285 5262 62.24.78.232 (25 Apr 2002 23:28:05 GMT) X-Complaints-To: usenet@ns.felk.cvut.cz NNTP-Posting-Date: Thu, 25 Apr 2002 23:28:05 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:23124 Date: 2002-04-26T01:28:19+02:00 List-Id: "Nick Roberts" wrote in message news:3cc866f9.71682376@news.cis.dfn.de... > On Thu, 25 Apr 2002 19:10:21 +0200, "Sergey Koshcheyev" > strongly typed: > > >I believe most GPLed C/C++ programs for Unix have such paths hard-coded into > >them, configured at build-time, using autoconf. You might consider that > >approach too. > > Surely that's the exact opposite of what should be recommended! Well, everybody does it this way anyway (if I understood correctly). Also, why mess with complicated, non-portable and non-reliable things like determining the executable path? For example, if somebody creates a (symbolic) link to your program from some directory, why require them to also create links for the data? Sergey.