[Issue 4585] DMD2 should look for dmd2.conf

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 5 20:28:00 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4585



--- Comment #3 from Leandro Lucarella <llucax at gmail.com> 2010-08-05 20:27:58 PDT ---
(In reply to comment #2)
> Does argv[0] contain full path to the binary?

No, at least on unix, is the same command you typed, but you can always do
basename(argv[0]) and search for that file where the dmd binary (which is
already searched by DMD) is, and the other search paths.

So I think is a viable option. I find a little odd that the config file changes
if you change the binary name, but I can see how it can be pragmatic.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list