8 Commits
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -76,6 +76,7 @@ You can configure behaviour of this plugin using ``.ini`` file located under
root =
adb_command = adb
adb_connect =
try_su = false
where:
+3 -2
View File
@@ -80,6 +80,7 @@ class Conf(object):
self.suppress_colors = False
self.adb_command = 'adb'
self.adb_connect = ''
self.try_su = False
self.read()
self.connect()
@@ -187,7 +188,7 @@ class Conf(object):
if not os.path.exists(conf_fname):
return
cfg = configparser.SafeConfigParser()
cfg = configparser.ConfigParser()
cfg_map = {'debug': (cfg.getboolean, 'debug'),
'dirs_to_skip': (cfg.get, 'dirs_to_skip'),
'suppress_colors': (cfg.get, 'suppress_colors'),
@@ -204,7 +205,7 @@ class Conf(object):
pass
if self.dirs_to_skip and isinstance(self.dirs_to_skip, str):
self.dirs_to_skip = json.loads(self.dirs_to_skip, encoding='ascii')
self.dirs_to_skip = json.loads(self.dirs_to_skip)
self.dirs_to_skip = [x.encode('utf-8') for x in self.dirs_to_skip]
else:
self.dirs_to_skip = []