[M3devel] problems with cm3.cfg and MxConfig

jay.krell at cornell.edu jay.krell at cornell.edu
Mon Aug 3 08:42:17 CEST 2009


Host, hm, I think probably my mistake. It is defined by cm3 but not  
all m3quake users. Path() should be the directory containing the file  
with the call.

  - Jay (phone)

On Aug 2, 2009, at 9:52 PM, "Randy Coleburn" <rcoleburn at scires.com>  
wrote:

> I have been working on the problem of cm3ide not getting the  
> BUILD_DIR from cm3.cfg.  I've run across some perplexing test results.
>
> MxConfig.Get("BUILD_DIR") is returning NIL on Windows XP & Vista.   
> I've tracked it down a bit further.  There seem to be two issues  
> that must be fixed to solve this problem:
>
> 1.  HOST does not seem to be defined.  In particular my "C:\cm3\bin 
> \cm3.cfg" file appears as follows (this is the file Jay recommended):
> INSTALL_ROOT = path() & "/.."
> include (path() & "/config/" & HOST)
>
> Is HOST a variable?  Or, was I supposed to replace it by "NT386"?   
> If the latter, my bad on this one--I took Jay's message literally.
>
> 2.  path() does not appear to always yield the path to the bin  
> folder.  In particular, it seems to work fine unless you invoke the  
> program when the current directory is actually set to the bin  
> folder, in which case path() seems to return the empty string.
>
> So, if Í%=C:\, and I run cm3ide, path() returns "C:\cm3\bin" as it s 
> hould.
> But, if Í%=C:\cm3\bin, and I run cm3ide, path() returns "".
>
> So in the latter case, the include statement winds up trying to pull  
> a file from the wrong place, e.g. "/config/NT386" rather than "C: 
> \cm3\bin/config/NT386"
>
> Regards,
> Randy Coleburn



More information about the M3devel mailing list