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

        return WindowsHacks.isWmfAvailableOnClipboard()
Ejemplo n.º 4
0
    def isWmfAvailableOnClipboard():
        """
        Return True iff Windows meta file format is available on clipboard
        """
        if WindowsHacks is None:
            return False

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

        return WindowsHacks.saveWmfFromClipboardToFileStorage(fs, self.prefix)
    def saveWmfFromClipboardToFileStorage(self, fs):
        if WindowsHacks is None:
            return None

        return WindowsHacks.saveWmfFromClipboardToFileStorage(fs, self.prefix)
Ejemplo n.º 7
0
 def createClipboardInterceptor(callingWindow):
     return WindowsHacks.ClipboardCatchIceptor(callingWindow)
Ejemplo n.º 8
0
 def createInterceptCollection(interceptors=None):
     return WindowsHacks.WinProcInterceptCollection(interceptors)
Ejemplo n.º 9
0
 def normalizePath(path):
     return WindowsHacks.getLongPath(os.path.abspath(path)).lower()
Ejemplo n.º 10
0
 def normalizePath(path):
     return WindowsHacks.getLongPath(os.path.abspath(path)).lower()