Exemplo n.º 1
0
        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()
Exemplo n.º 2
0
    def isWmfAvailableOnClipboard():
        """
        Return True iff Windows meta file format is available on clipboard
        """
        if WindowsHacks is None:
            return False

        return WindowsHacks.isWmfAvailableOnClipboard()
Exemplo n.º 3
0
    def saveWmfFromClipboardToFileStorage(self, fs):
        if WindowsHacks is None:
            return None

        return WindowsHacks.saveWmfFromClipboardToFileStorage(fs, self.prefix)
Exemplo n.º 4
0
 def normalizePath(path):
     return WindowsHacks.getLongPath(os.path.abspath(path)).lower()