code: def processPath(self, path, objectType):
          '''
          processes a path/object type combo and returns:
              registry types with the correct HKEY text representation
              files/directories with environment variables expanded
          '''
          if objectType == win32security.SE_REGISTRY_KEY:
              splt = path.split("\\")
              hive = self.getSecurityHkey(splt.pop(0).upper())
              splt.insert(0, hive)
              path = r'\\'.join(splt)
          else:
              path = os.path.expandvars(path)
          return patf processPath(self, path, objectType):
          '''
          processes a path/object type combo and returns:
              registry types with the correct HKEY text representation
              files/directories with environment variables expanded
          '''
          if objectType == win32security.SE_REGISTRY_KEY:
              splt = path.split("\\")
              hive = self.getSecurityHkey(splt.pop(0).upper())
              splt.insert(0, hive)
              path = r'\\'.join(splt)
          else:
              path = os.path.expandvars(path)
          return path
docs: processes a path/object type combo and returns:
              registry types with the correct HKEY text representation
              files/directories with environment variables expanded