# HG changeset patch # User Aurelien Campeas # Date 1252687788 -7200 # Node ID 8af05e82510c574c9941894858809928293476b1 # Parent 93c8fdcd943eca60ce7751849c6544377cb3df6f HOME is spelled USERPROFILE on windows diff -r 93c8fdcd943e -r 8af05e82510c common/migration.py --- a/common/migration.py Fri Sep 11 18:24:47 2009 +0200 +++ b/common/migration.py Fri Sep 11 18:49:48 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: