From 82989370776b3b7b4d33e2dcf22c04d628f6f779 Mon Sep 17 00:00:00 2001 From: Martin Herren Date: Sat, 11 May 2019 09:50:28 +0200 Subject: [PATCH] [cppcheck-htmlreport] Use makedirs instead of mkdir to create report_dir to allow recursive creation of the full directory path (#1829) --- htmlreport/cppcheck-htmlreport | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport index 26d4791bf..663444e1c 100755 --- a/htmlreport/cppcheck-htmlreport +++ b/htmlreport/cppcheck-htmlreport @@ -444,7 +444,7 @@ if __name__ == '__main__': # Make sure that the report directory is created if it doesn't exist. print('Creating %s directory' % 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 # file that contains one or more errors.