fix for remote paths. #551

This commit is contained in:
clinton-hall 2014-09-07 10:10:02 +09:30
commit cb126c3644

View file

@ -334,6 +334,7 @@ def initialize(section=None):
REMOTEPATHS = CFG["Network"]["mount_points"] or None REMOTEPATHS = CFG["Network"]["mount_points"] or None
if REMOTEPATHS: if REMOTEPATHS:
if isinstance(REMOTEPATHS, list): REMOTEPATHS = ','.join(REMOTEPATHS) # fix in case this imported as list.
REMOTEPATHS = [ tuple(item.split(',')) for item in REMOTEPATHS.split('|') ] # /volume1/Public/,E:\|/volume2/share/,\\NAS\ REMOTEPATHS = [ tuple(item.split(',')) for item in REMOTEPATHS.split('|') ] # /volume1/Public/,E:\|/volume2/share/,\\NAS\
devnull = open(os.devnull, 'w') devnull = open(os.devnull, 'w')