diff -r caef98aa4a98 -r 59220b704562 common/migration.py --- a/common/migration.py Thu Sep 17 19:38:04 2009 +0200 +++ b/common/migration.py Fri Sep 18 11:24:37 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: