about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-28 19:11:27 +0100
committerhut <hut@lavabit.com>2009-12-28 19:11:27 +0100
commitb8dda85b34872f0350e9be90f64c2b5467c4bac4 (patch)
treed946f697dbaa565094c5420bab157b2977634f1b
parent52afd1f460e9bcc2259f10d0fa40cf3938059a58 (diff)
downloadranger-b8dda85b34872f0350e9be90f64c2b5467c4bac4.tar.gz
use os.chdir to stay on the pwd
-rw-r--r--ranger/container/environment.py2
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()