diff options
author | hut <hut@lavabit.com> | 2009-12-28 19:11:27 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-28 19:11:27 +0100 |
commit | b8dda85b34872f0350e9be90f64c2b5467c4bac4 (patch) | |
tree | d946f697dbaa565094c5420bab157b2977634f1b /ranger | |
parent | 52afd1f460e9bcc2259f10d0fa40cf3938059a58 (diff) | |
download | ranger-b8dda85b34872f0350e9be90f64c2b5467c4bac4.tar.gz |
use os.chdir to stay on the pwd
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/container/environment.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/container/environment.py b/ranger/container/environment.py index 8a6f6674..3c11ff54 100644 --- a/ranger/container/environment.py +++ b/ranger/container/environment.py @@ -1,4 +1,5 @@ from os.path import abspath, normpath, join, expanduser, isdir +import os from ranger.fsobject.directory import Directory, NoDirectoryGiven from ranger.container import KeyBuffer, History from ranger.shared import SettingsAware @@ -117,6 +118,7 @@ class Environment(SettingsAware): self.path = path self.pwd = new_pwd + os.chdir(path) self.pwd.load_content_if_outdated() |