Re: Messy Autoexec.bat
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Aug 30, 2004
- 418 views
On Sun, 29 Aug 2004 18:08:24 -0700, Derek Parnell <guest at RapidEuphoria.com> wrote: > >Although CoJaBo is correct that this is one way to tidy up >your autoexec.bat, it still is valid point of discussion >about the way "include" uses search paths. > >For example, I have C:\EUINC folder in which I store 3rd party >libraries and others that I have written. To organise these, >I do have some of these in subfolders. It would be useful to >be able to tell Euphoria to automatically scan these subfolders >(but in which order?) without having me manually update >autoexec.bat (or equivalent) from time to time. I think the real problem is that the interpreter has no memory of directories previously visited. So I cannot for example download a new version of win32lib.ew into C:/editor/w326005 and then include it by using "include w326005/win32lib.ew" because it will go wrong loading any of the other 18 or so files used by win32lib.ew. If, otoh, it maintained a sorted list of the most recent directories included from and scanned though them in order, then not only would the above work but your organised c:\euinc would too: you could just say "include w326005/win32lib.ew" and the interpreter would [also] go look in %EUINC%\w326005\ If you have duplicate file names (which, technically I guess should generate a warning) then it is much more likely to load the right one this way, rather than always searching in the %EUINC% order. Regards, Pete