From 5508e78dde109f40c31f27b826c8d0c0f4be05b4 Mon Sep 17 00:00:00 2001 From: psy Date: Thu, 26 Sep 2013 06:48:42 -0700 Subject: [PATCH] fixed error on variable name --- main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index c8bdbab..e3ea8ae 100755 --- a/main.py +++ b/main.py @@ -113,7 +113,6 @@ class bc(object): Check browsers used by system """ print "Browser Options:\n" + '='*45 + "\n" - # make browser set manually by user if self.options.browser: if self.options.browser == "F" or self.options.browser == "f": # Firefox @@ -248,8 +247,8 @@ class bc(object): print "Warning: Safari hasn't been detected on your Darwin system.\n" sys.exit(2) elif sys.platform.startswith('linux'): # on unix - self.operating_system = 'linux' - safari_lin = os.path.join(os.path.expanduser('~'), 'Library/Safari/History.plist') + self.operating_system = 'linux # check needed' + safari_lin = os.path.join(os.path.expanduser('~'), 'Library/Safari/History.plist') # check needed if os.path.exists(safari_lin): self.browser = "S" if self.options.browser_history: # if exists, extract user browser's history path @@ -291,7 +290,7 @@ class bc(object): pass latest_subdir = max(all_subdirs, key=os.path.getmtime) osx_profile = os.path.join(f_his_osx, latest_subdir) - if self.options.browser_history_history: # if exists, extract user browser's history path + if self.options.browser_history: # if exists, extract user browser's history path self.browser_history_path = self.options.browser_history else: self.browser_history_path = os.path.join(osx_profile, 'places.sqlite')