=== modified file 'bin/tools/config.py' --- bin/tools/config.py 2010-01-13 12:53:41 +0000 +++ bin/tools/config.py 2010-01-15 16:23:35 +0000 @@ -343,10 +343,24 @@ import stat os.chmod(filename, stat.S_IRUSR + stat.S_IWUSR) + # Verify that given addons path exist. Value can be a comma separated list of paths def _check_addons_path(self, option, opt, value, parser): - res = os.path.abspath(os.path.expanduser(value)) - if not os.path.exists(res): - raise optparse.OptionValueError("option %s: no such directory: %r" % (opt, value)) + def path_exist(path): + res = os.path.abspath(os.path.expanduser(path)) + if not os.path.exists(res): + raise optparse.OptionValueError("option %s: no such directory: %r" % (opt, path)) + return res + + value_array = value.split(',') + res = '' + + if value_array: + for rec in value_array: + path_exist(rec) + res = value + else : + res = path_exist(value) + setattr(parser.values, option.dest, res) def load(self):