comparison pyArq-Presupuestos @ 6:2fc6b47dbe70

rename module globals to globalVars
author Miguel Ángel Bárcena Rodríguez <miguelangel@obraencurso.es>
date Sat, 06 Nov 2010 22:33:32 +0100
parents a221c14c3c31
children
comparison
equal deleted inserted replaced
5:6502bfdaa84d 6:2fc6b47dbe70
23 """def translate() 23 """def translate()
24 24
25 Translates the program using gettext module 25 Translates the program using gettext module
26 """ 26 """
27 _app = "pyArq-Presupuestos" 27 _app = "pyArq-Presupuestos"
28 _dir = globals.path["APPDATA"] + "/mo/" 28 _dir = globalVars.path["APPDATA"] + "/mo/"
29 gettext.install(_app, _dir, unicode=1) 29 gettext.install(_app, _dir, unicode=1)
30 30
31 def _run_gui(): 31 def _run_gui():
32 """def _run_gui 32 """def _run_gui
33 33
38 # Run pyArq-Presupuestos 38 # Run pyArq-Presupuestos
39 if __name__ == "__main__": 39 if __name__ == "__main__":
40 # Modules 40 # Modules
41 import gettext 41 import gettext
42 import sys 42 import sys
43 from Generic import globals 43 from Generic import globalVars
44 # take path to find mo file 44 # take path to find mo file
45 _path = sys.path[0] 45 _path = sys.path[0]
46 globals.path["APPDATA"]= _path 46 globalVars.path["APPDATA"]= _path
47 _translate() 47 _translate()
48 from Gtk import gui 48 from Gtk import gui
49 _run_gui() 49 _run_gui()