def samefile(path1, path2): # Not fully reliable. Does anybody know something better? if WindowsHacks.getLongPath(path1).lower() == \ WindowsHacks.getLongPath(path2).lower(): return True return WindowsHacks.getLongPath(os.path.abspath(path1)).lower() == \ WindowsHacks.getLongPath(os.path.abspath(path2)).lower()
def isWmfAvailableOnClipboard(): """ Return True iff Windows meta file format is available on clipboard """ if WindowsHacks is None: return False return WindowsHacks.isWmfAvailableOnClipboard()
def saveWmfFromClipboardToFileStorage(self, fs): if WindowsHacks is None: return None return WindowsHacks.saveWmfFromClipboardToFileStorage(fs, self.prefix)
def createClipboardInterceptor(callingWindow): return WindowsHacks.ClipboardCatchIceptor(callingWindow)
def createInterceptCollection(interceptors=None): return WindowsHacks.WinProcInterceptCollection(interceptors)
def normalizePath(path): return WindowsHacks.getLongPath(os.path.abspath(path)).lower()