code: def FrameworkDir32(self):
          
          # Default path
          guess_fw = os.path.join(self.WinDir, r'Microsoft.NET\Framework')
  
          # Try to get path from registry, if fail use default path
          return self.ri.lookup(self.ri.vc, 'frameworkdir32') or guess_fw
docs: Microsoft .NET Framework 32bit directory.