|
|
|
@ -549,8 +549,8 @@ class RawWrappedTextHelpFormatter(argparse.RawDescriptionHelpFormatter):
|
|
|
|
|
ident = m.group(1)
|
|
|
|
|
line_text = m.group(2)
|
|
|
|
|
# Wrap each lines and add in result with ident prefix
|
|
|
|
|
for l in textwrap.wrap(line_text, width - len(ident)):
|
|
|
|
|
result.append(ident + l)
|
|
|
|
|
for subline in textwrap.wrap(line_text, width - len(ident)):
|
|
|
|
|
result.append(ident + subline)
|
|
|
|
|
return result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -676,8 +676,8 @@ class Config: # pylint: disable=too-many-instance-attributes
|
|
|
|
|
dirpath = os.path.dirname(filepath)
|
|
|
|
|
if os.path.isfile(filepath):
|
|
|
|
|
if not os.access(filepath, os.W_OK):
|
|
|
|
|
log.error('Configuration file "%s" is not writable', filepath)
|
|
|
|
|
return False
|
|
|
|
|
log.error('Configuration file "%s" is not writable', filepath)
|
|
|
|
|
return False
|
|
|
|
|
elif not os.path.isdir(dirpath) or not os.access(dirpath, os.R_OK | os.W_OK | os.X_OK):
|
|
|
|
|
log.error(
|
|
|
|
|
'Configuration directory "%s" does not exist (or not writable)', dirpath)
|
|
|
|
|