Exemplo n.º 1
0
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))
Exemplo n.º 2
0
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))
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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