From 1fbf9b98a3a158512bfc9127bfccecd13cfa8f08 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 19 Mar 2010 14:41:02 +0100 Subject: gui.ui: import os in the top level of the module --- ranger/gui/ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py index b073c2e0..7f975f90 100644 --- a/ranger/gui/ui.py +++ b/ranger/gui/ui.py @@ -13,6 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +import os import socket import sys import curses @@ -31,9 +32,8 @@ class UI(DisplayableContainer): mousemask = curses.ALL_MOUSE_EVENTS | curses.REPORT_MOUSE_POSITION load_mode = False def __init__(self, commandlist=None, env=None, fm=None): - from os import environ - self._draw_title = environ["TERM"] in TERMINALS_WITH_TITLE - environ['ESCDELAY'] = '25' # don't know a cleaner way + self._draw_title = os.environ["TERM"] in TERMINALS_WITH_TITLE + os.environ['ESCDELAY'] = '25' # don't know a cleaner way if env is not None: self.env = env -- cgit 1.4.1-2-gfad0