From a216b31ef1a60d35c2c33d9eccc4e2bd195bc31e Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 21 May 2017 20:47:18 +0200 Subject: [PATCH] Fix for adb_command --- adbfs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/adbfs b/adbfs index 77c010b..57e40ba 100755 --- a/adbfs +++ b/adbfs @@ -9,7 +9,6 @@ adbfs Virtual filesystem for Midnight Commander import ConfigParser import argparse from datetime import datetime -import errno import json import os import re @@ -92,8 +91,8 @@ class Conf(object): except subprocess.CalledProcessError: pass - raise NoBoxFoundException(errno.ENOENT, - 'There is no toolbox or busybox available') + sys.stderr.write('There is no toolbox or busybox available.\n') + sys.exit(1) def read(self): """ @@ -112,7 +111,7 @@ class Conf(object): 'dirs_to_skip': (cfg.get, 'dirs_to_skip'), 'suppress_colors': (cfg.get, 'suppress_colors'), 'root': (cfg.get, 'root'), - 'adb_command': (cfg.get, 'adb')} + 'adb_command': (cfg.get, 'adb_command')} cfg.read(conf_fname) for key, (function, attr) in cfg_map.items():