# HG changeset patch # User Sylvain Thénault # Date 1252925427 -7200 # Node ID 11b84e3b945858aa82e16a8fa55ba9186dcf80f9 # Parent 2516324401dd65aac0bb96ef910c0d9dccc2b218# Parent 1366cacd53877e6b7739cf2ef48b38c677c2aa52 merge diff -r 2516324401dd -r 11b84e3b9458 common/i18n.py --- a/common/i18n.py Mon Sep 14 12:48:40 2009 +0200 +++ b/common/i18n.py Mon Sep 14 12:50:27 2009 +0200 @@ -45,7 +45,7 @@ """ print cmd.replace(os.getcwd() + os.sep, '') from subprocess import call - status = call(cmd) + status = call(cmd, shell=True) if status != 0: raise Exception('status = %s' % status) diff -r 2516324401dd -r 11b84e3b9458 common/migration.py --- a/common/migration.py Mon Sep 14 12:48:40 2009 +0200 +++ b/common/migration.py Mon Sep 14 12:50:27 2009 +0200 @@ -228,7 +228,10 @@ else: readline.set_completer(Completer(local_ctx).complete) readline.parse_and_bind('tab: complete') - histfile = os.path.join(os.environ["HOME"], ".eshellhist") + home_key = 'HOME' + if sys.platform == 'win32': + home_key = 'USERPROFILE' + histfile = os.path.join(os.environ[home_key], ".eshellhist") try: readline.read_history_file(histfile) except IOError: