³ò ”,9Mc@s4dZdZddkZddkZddkZddkZddkZeii dƒZ e djo d„Z nfe oUyddk Z Wne j od„Z qÙXe ide d e iƒe i Z n d „Z dad „Zd „Zd „Zd„Zddd„Zdd„Zd„Zd„ZdS(sGsrc/engine/SCons/Tool/MSCommon/common.py 4629 2010/01/17 22:23:21 sconssD Common helper functions for working with the Microsoft tool chain. iÿÿÿÿNtSCONS_MSCOMMON_DEBUGt-cCs |GHdS(N((tx((s?install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/common.pytdebug(scCsttdƒi|dƒS(tas (topentlogfiletwrite(R((s?install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/common.pyt.stfilenametlevelcCsdS(N(tNone(R((s?install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/common.pyR3scCs{tdjojtatiiddƒdjo tantiidƒo tantiidƒo taqwntS(skReturn true if running on windows 64 bits. Works whether python itself runs in 64 bits or 32 bits.tPROCESSOR_ARCHITECTUREtx86tPROCESSOR_ARCHITEW6432t ProgramW6432N(t _is_win64R tFalsetostenvirontgettTrue(((s?install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/common.pytis_win648s   cCstiitii|ƒdS(Ni(tSConstUtilt RegGetValuetHKEY_LOCAL_MACHINE(tvalue((s?install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/common.pytread_regWscCsCy#tiitii|ƒt}Wntj o t}nX|S(sOReturn True if the given key exists in HKEY_LOCAL_MACHINE, False otherwise.(RRt RegOpenKeyExRRt WindowsErrorR(Rtret((s?install/lib/scons-1.2.0.d20100117/SCons/Tool/MSCommon/common.pythas_regZs   cCsŽh}|o}x4|iƒD]&}ti||ƒidƒ||s4             "