Commit f894fb221772697bb1e512b29fff30d46143daa7

Authored by Erickson Silva
1 parent a5c7f56a
Exists in devel

[TranslationServer] Corrige rota para regionalismo

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
src/TranslationServer.py
@@ -88,12 +88,13 @@ def init_mode(args): @@ -88,12 +88,13 @@ def init_mode(args):
88 def list_bundles(): 88 def list_bundles():
89 global BUNDLES_LIST 89 global BUNDLES_LIST
90 states = ["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"] 90 states = ["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"]
91 - BUNDLES_LIST["DEFAULT"] = set(list_files(BUNDLES_PATH["STANDALONE"])) 91 + BUNDLES_LIST["DEFAULT"] = set(list_files(BUNDLES_PATH["ANDROID"]))
92 for state in states: 92 for state in states:
93 try: 93 try:
94 - BUNDLES_LIST[state] = set(os.listdir(os.path.join(BUNDLES_PATH["STANDALONE"], state))) 94 + BUNDLES_LIST[state] = set(os.listdir(os.path.join(BUNDLES_PATH["ANDROID"], state)))
95 except OSError: 95 except OSError:
96 pass 96 pass
  97 + print BUNDLES_LIST
97 98
98 def list_files(path): 99 def list_files(path):
99 files = [] 100 files = []