[gtk-doc/wip/smcv/mkhtml2-typo] mkhtml2: Fix apparent typo "os.getcmd()"
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc/wip/smcv/mkhtml2-typo] mkhtml2: Fix apparent typo "os.getcmd()"
- Date: Wed, 12 Aug 2020 23:11:51 +0000 (UTC)
commit 88403fa4032941958a172f8403debd8f01c118f1
Author: Simon McVittie <smcv debian org>
Date: Thu Aug 13 00:09:11 2020 +0100
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 <smcv debian org>
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]