From 88403fa4032941958a172f8403debd8f01c118f1 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 13 Aug 2020 00:09:11 +0100 Subject: mkhtml2: Fix apparent typo "os.getcmd()" os.getcwd() would make sense here. This call isn't actually reached in practice, because the gtkdoc-mkhtml2 script entry point always passes something for options.output_dir, even if it's ".". Signed-off-by: Simon McVittie --- gtkdoc/mkhtml2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtkdoc/mkhtml2.py b/gtkdoc/mkhtml2.py index 2eb5c73..3bec6fd 100644 --- a/gtkdoc/mkhtml2.py +++ b/gtkdoc/mkhtml2.py @@ -1862,7 +1862,7 @@ def run(options): module = options.args[0] document = options.args[1] - output_dir = options.output_dir or os.getcmd() + output_dir = options.output_dir or os.getcwd() if options.output_dir and not os.path.isdir(output_dir): os.mkdir(output_dir) -- cgit v1.2.1