1
0
mirror of https://github.com/gryf/mc_adbfs.git synced 2025-12-18 12:00:19 +01:00

Fix for adb_command

This commit is contained in:
2017-05-21 20:47:18 +02:00
parent 1c6a6cfdf8
commit a216b31ef1

7
adbfs
View File

@@ -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():