From b8dda85b34872f0350e9be90f64c2b5467c4bac4 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 28 Dec 2009 19:11:27 +0100 Subject: use os.chdir to stay on the pwd --- ranger/container/environment.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- cgit 1.4.1-2-gfad0