From cdfdaa455d9e6abf8110ba4b8993894d459149f2 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Wed, 6 Mar 2013 15:33:17 +0100 Subject: [PATCH] [FIX] babel: the babel localedata was put back to its right place in the previous commit, so the zip-related hack can disappear. bzr revid: vmt@openerp.com-20130306143317-oo4n6x78v68rqn9i --- openerp/cli/server.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/openerp/cli/server.py b/openerp/cli/server.py index 7fb252f905f..fdde56bc912 100644 --- a/openerp/cli/server.py +++ b/openerp/cli/server.py @@ -218,12 +218,6 @@ def quit_on_signals(): os.unlink(config['pidfile']) sys.exit(0) -def configure_babel_localedata_path(): - # Workaround: py2exe and babel. - if hasattr(sys, 'frozen'): - import babel - babel.localedata._dirname = os.path.join(os.path.dirname(sys.executable), 'localedata') - def main(args): os.environ["TZ"] = "UTC" @@ -236,8 +230,6 @@ def main(args): config = openerp.tools.config - configure_babel_localedata_path() - setup_signal_handlers() if config["test_file"]: