def is64bitbinary(filename): """Check if the file is 64-bit binary""" import win32file try: binary_type = win32file.GetBinaryType(filename) return binary_type != win32file.SCS_32BIT_BINARY except Exception as exc: warnings.warn('Cannot get binary type for file "{}". Error: {}' .format(filename, exc), RuntimeWarning, stacklevel=2) return None
def is64bitbinary(filename): """Check if the file is 64-bit binary""" import win32file binary_type = win32file.GetBinaryType(filename) return binary_type != win32file.SCS_32BIT_BINARY
def is64bitbinary(filename): import win32file binary_type = win32file.GetBinaryType(filename) return binary_type != win32file.SCS_32BIT_BINARY
def _GetFileBitness(file_path): """Returns the bitness of the given file.""" if win32file.GetBinaryType(file_path) == win32file.SCS_32BIT_BINARY: return '32' return '64'