env.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:teleport 作者: eomsoft 项目源码 文件源码
def _get_msbuild(self):
        # 14.0 = VS2015
        # 12.0 = VS2012
        #  4.0 = VS2008
        chk = ['14.0', '12.0', '4.0']

        p = None
        for c in chk:
            p = self._winreg_read(winreg.HKEY_LOCAL_MACHINE, r'SOFTWARE\Microsoft\MSBuild\ToolsVersions\{}'.format(c), r'MSBuildToolsPath')
            if p is not None:
                break

        return os.path.join(p[0], 'MSBuild.exe') if p is not None else None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号