buildframework/helium/sf/python/pythoncore/lib/archive/builders.py
changeset 628 7c4a911dc066
parent 588 c7c26511138f
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
   132                     break
   132                     break
   133             else:
   133             else:
   134                 commonRoots[common_path] = 1
   134                 commonRoots[common_path] = 1
   135         return commonRoots.keys()
   135         return commonRoots.keys()
   136 
   136 
   137     def getPrefix(self, dir, commonUncRoots):
   137     def getPrefix(self, dir_, commonUncRoots):
   138         """get prefix"""
   138         """get prefix"""
   139         for root in commonUncRoots:
   139         for root in commonUncRoots:
   140             if dir.startswith(root):
   140             if dir_.startswith(root):
   141                 return root
   141                 return root
   142         raise Exception("Could not find root for %s." % dir)
   142         raise Exception("Could not find root for %s." % dir_)
   143     
   143     
   144     def checkRootDirValue(self, builder, parse_xml_file, build_drive, config_type):
   144     def checkRootDirValue(self, builder, parse_xml_file, build_drive, config_type):
   145         """Checks UNC path in root.dir and adds the substituted drive into EMAKEROOT."""
   145         """Checks UNC path in root.dir and adds the substituted drive into EMAKEROOT."""
   146         substDrives = []
   146         substDrives = []
   147         if build_drive:
   147         if build_drive: