(self)
Microsoft Windows SDK Tools paths generator
Microsoft Windows SDK Tools paths generator
Microsoft Windows SDK Tools paths generator
def _sdk_tools(self):
        """
        Microsoft Windows SDK Tools paths generator
        """
        if self.vc_ver < 15.0:
            bin_dir = 'Bin' if self.vc_ver <= 11.0 else r'Bin\x86'
            yield os.path.join(self.si.WindowsSdkDir, bin_dir)

        if not self.pi.current_is_x86():
            arch_subdir = self.pi.current_dir(x64=True)
            path = 'Bin%s' % arch_subdir
            yield os.path.join(self.si.WindowsSdkDir, path)

        if self.vc_ver == 10.0 or self.vc_ver == 11.0:
            if self.pi.target_is_x86():
                arch_subdir = ''
            else:
                arch_subdir = self.pi.current_dir(hidex86=True, x64=True)
            path = r'Bin\NETFX 4.0 Tools%s' % arch_subdir
            yield os.path.join(self.si.WindowsSdkDir, path)

        elif self.vc_ver >= 15.0:
            path = os.path.join(self.si.WindowsSdkDir, 'Bin')
            arch_subdir = self.pi.current_dir(x64=True)
            sdkver = self.si.WindowsSdkLastVersion
            yield os.path.join(path, '%s%s' % (sdkver, arch_subdir))

        if self.si.WindowsSDKExecutablePath:
            yield self.si.WindowsSDKExecutablePath
def _sdk_tools ( self ) : if self . vc_ver < 15.0 : bin_dir = 'Bin' if self . vc_ver <= 11.0 else r'Bin\x86' yield os . path . join ( self . si . WindowsSdkDir , bin_dir ) if not self . pi . current_is_x86 ( ) : arch_subdir = self . pi . current_dir ( x64 = True ) path = 'Bin%s' % arch_subdir yield os . path . join ( self . si . WindowsSdkDir , path ) if self . vc_ver == 10.0 or self . vc_ver == 11.0 : if self . pi . target_is_x86 ( ) : arch_subdir = '' else : arch_subdir = self . pi . current_dir ( hidex86 = True , x64 = True ) path = r'Bin\NETFX 4.0 Tools%s' % arch_subdir yield os . path . join ( self . si . WindowsSdkDir , path ) elif self . vc_ver >= 15.0 : path = os . path . join ( self . si . WindowsSdkDir , 'Bin' ) arch_subdir = self . pi . current_dir ( x64 = True ) sdkver = self . si . WindowsSdkLastVersion yield os . path . join ( path , '%s%s' % ( sdkver , arch_subdir ) ) if self . si . WindowsSDKExecutablePath : yield self . si . WindowsSDKExecutablePath