def setlocale(): language_code, encoding = locale.getdefaultlocale() if language_code is None: language_code = 'en_GB' if encoding is None: encoding = 'UTF-8' if encoding.lower() == 'utf': encoding = 'UTF-8' if not isThisWindows(): locale.setlocale(locale.LC_ALL, '%s.%s' % (language_code, encoding))
def _getSvnInfo(self, path): ret = "" url = self.getRevisionPath(path) if len(url) > 0: try : ret = url + ":" + str(self.getRevisionNumber(path)) except: ret = url + ":unknown" else: if isThisWindows(): if path.find("_runtime/") != -1: ret = self._getBinSvnInfo(path) else: if path.find("bin/realese") != -1: ret = self._getBinSvnInfo(path) return ret
def _getSvnInfo(self, path): ret = "" url = self.getRevisionPath(path) if len(url) > 0: try: ret = url + ":" + str(self.getRevisionNumber(path)) except: ret = url + ":unknown" else: if isThisWindows(): if path.find("_runtime/") != -1: ret = self._getBinSvnInfo(path) else: if path.find("bin/realese") != -1: ret = self._getBinSvnInfo(path) return ret