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 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-26 14:32:04 PST From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: How to find directory where the program is? Date: 26 Apr 2002 16:31:52 -0500 Organization: LJK Software Message-ID: References: <3CC6D15A.2070509@mail.com> <3cc73115.426446486@news.cis.dfn.de> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1019856714 9934 192.135.80.34 (26 Apr 2002 21:31:54 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 26 Apr 2002 21:31:54 +0000 (UTC) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!deine.net!feed.ac-versailles.fr!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!newsfeed.onecall.net!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen Xref: archiver1.google.com comp.lang.ada:23156 Date: 2002-04-26T16:31:52-05:00 List-Id: In article , Stephen Leake writes: > "Marin David Condic" writes: > >> I wonder if it is possible to specify a portable interface for doing this >> sort of thing that could be supported in some manner on most popular >> operating systems? Would most OS's provide some version of a logical name >> such that defining a "Translate_Logical_Name" operation would yield things >> like files/directories? > > Most OS's have "environment variables". The hard part is getting the > installer to set the appropriate environment variable. Which is why depending on the installer to do this is not in the spirit of Ada. If there is no way to get a definitive answer from the operating system regarding what image is running, we should not pretend.