mirror of
https://github.com/gryf/mc_adbfs.git
synced 2025-12-18 20:10:21 +01:00
Fix for adb_command
This commit is contained in:
7
adbfs
7
adbfs
@@ -9,7 +9,6 @@ adbfs Virtual filesystem for Midnight Commander
|
|||||||
import ConfigParser
|
import ConfigParser
|
||||||
import argparse
|
import argparse
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import errno
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
@@ -92,8 +91,8 @@ class Conf(object):
|
|||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
raise NoBoxFoundException(errno.ENOENT,
|
sys.stderr.write('There is no toolbox or busybox available.\n')
|
||||||
'There is no toolbox or busybox available')
|
sys.exit(1)
|
||||||
|
|
||||||
def read(self):
|
def read(self):
|
||||||
"""
|
"""
|
||||||
@@ -112,7 +111,7 @@ class Conf(object):
|
|||||||
'dirs_to_skip': (cfg.get, 'dirs_to_skip'),
|
'dirs_to_skip': (cfg.get, 'dirs_to_skip'),
|
||||||
'suppress_colors': (cfg.get, 'suppress_colors'),
|
'suppress_colors': (cfg.get, 'suppress_colors'),
|
||||||
'root': (cfg.get, 'root'),
|
'root': (cfg.get, 'root'),
|
||||||
'adb_command': (cfg.get, 'adb')}
|
'adb_command': (cfg.get, 'adb_command')}
|
||||||
cfg.read(conf_fname)
|
cfg.read(conf_fname)
|
||||||
|
|
||||||
for key, (function, attr) in cfg_map.items():
|
for key, (function, attr) in cfg_map.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user