From 547d05bc0d164faa1e0f6d4b3e8c744ba47a534b Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 1 Apr 2008 00:27:06 -0300 Subject: [PATCH 1/1] =?utf8?q?Permitir=20pasar=20el=20el=20archivo=20de=20?= =?utf8?q?configuraci=C3=B3n=20por=20l=C3=ADnea=20de=20comandos=20al=20tes?= =?utf8?q?ter.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- testtester.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/testtester.py b/testtester.py index 96356c8..6c70b39 100755 --- a/testtester.py +++ b/testtester.py @@ -1,10 +1,16 @@ #!/usr/bin/python # vim: set et sw=4 sts=4 encoding=utf-8 foldmethod=marker : +import sys +try: + configfile = sys.argv[1] +except: + configfile = 'dev.cfg' + #{{{ TG config/hacks import turbogears import turbogears.database -turbogears.update_config(configfile="dev.cfg", modulename="sercom.config") +turbogears.update_config(configfile=configfile, modulename="sercom.config") import turbogears.i18n __builtins__._ = turbogears.i18n.plain_gettext # Nada de gettext lazy #}}} -- 2.43.0