changeset 3230 | 1d25e928c299 |
parent 3152 | 7ef7c82daf59 |
parent 3201 | 8af05e82510c |
child 3700 | fd550e4dc515 |
--- a/common/migration.py Mon Sep 14 11:25:56 2009 +0200 +++ b/common/migration.py Tue Sep 15 15:01:41 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: