#NEWLINE# def SetupWinEnvironment( self ) : #NEWLINE# #INDENT# 'Mock windows includes.' #NEWLINE# winreg = imp . new_module ( '_winreg' ) #NEWLINE# winreg . error = exceptions . Exception #NEWLINE# sys . modules [ '_winreg' ] = winreg #NEWLINE# ntsecuritycon = imp . new_module ( 'ntsecuritycon' ) #NEWLINE# sys . modules [ 'ntsecuritycon' ] = ntsecuritycon #NEWLINE# pywintypes = imp . new_module ( 'pywintypes' ) #NEWLINE# pywintypes . error = Exception #NEWLINE# sys . modules [ 'pywintypes' ] = pywintypes #NEWLINE# winfile = imp . new_module ( 'win32file' ) #NEWLINE# winfile . GetVolumeNameForVolumeMountPoint = GetVolumeNameForVolumeMountPoint #NEWLINE# winfile . GetVolumePathName = GetVolumePathName #NEWLINE# sys . modules [ 'win32file' ] = winfile #NEWLINE# win32security = imp . new_module ( 'win32security' ) #NEWLINE# sys . modules [ 'win32security' ] = win32security #NEWLINE# win32api = imp . new_module ( 'win32api' ) #NEWLINE# sys . modules [ 'win32api' ] = win32api #NEWLINE# win32service = imp . new_module ( 'win32service' ) #NEWLINE# sys . modules [ 'win32service' ] = win32service #NEWLINE# win32serviceutil = imp . new_module ( 'win32serviceutil' ) #NEWLINE# sys . modules [ 'win32serviceutil' ] = win32serviceutil #NEWLINE# winerror = imp . new_module ( 'winerror' ) #NEWLINE# sys . modules [ 'winerror' ] = winerror