[cppcheck-htmlreport] Use makedirs instead of mkdir to create report_dir to allow recursive creation of the full directory path (#1829)
This commit is contained in:
parent
9567076845
commit
8298937077
|
@ -444,7 +444,7 @@ if __name__ == '__main__':
|
||||||
# Make sure that the report directory is created if it doesn't exist.
|
# Make sure that the report directory is created if it doesn't exist.
|
||||||
print('Creating %s directory' % options.report_dir)
|
print('Creating %s directory' % options.report_dir)
|
||||||
if not os.path.exists(options.report_dir):
|
if not os.path.exists(options.report_dir):
|
||||||
os.mkdir(options.report_dir)
|
os.makedirs(options.report_dir)
|
||||||
|
|
||||||
# Generate a HTML file with syntax highlighted source code for each
|
# Generate a HTML file with syntax highlighted source code for each
|
||||||
# file that contains one or more errors.
|
# file that contains one or more errors.
|
||||||
|
|
Loading…
Reference in New Issue