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-Thread: 103376,b97aa4480eccc494 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: comp.lang.ada Subject: Re: How to get the application path References: <46a456aa$0$25908$426a34cc@news.free.fr> <1185204459.328520.240930@z24g2000prh.googlegroups.com> From: Markus E Leypold Organization: N/A Date: Tue, 24 Jul 2007 13:35:57 +0200 Message-ID: User-Agent: Some cool user agent (SCUG) Cancel-Lock: sha1:Pp5KDNFrSxePZBNxjYnaIZfKIr0= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 88.72.211.100 X-Trace: news.arcor-ip.de 1185276299 88.72.211.100 (24 Jul 2007 13:24:59 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news2.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor-ip.de!news.arcor-ip.de!not-for-mail Xref: g2news2.google.com comp.lang.ada:1158 Date: 2007-07-24T13:35:57+02:00 List-Id: > Markus E Leypold writes: > >> BTW: Is it possible the OP doesn't want the path to the executable, >> but rather the directory which becomes /became the wurrent directory >> of the application at startup? Isn't that what Application.startupPath >> is on Windows? > > Right. In which case Ada.Directories.Current_Directory is the answer. Yeah, but you have to get it once during application startup. > If you want the default directory at the start of the application, > call this then, and cache it. :-) > If you want the default directory at the time of whatever operation > you are currently doing, call it then. Regards -- Markus