From 0b50da7321a942b58142ff4256b5102922411b08 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Sun, 7 Feb 2021 06:35:42 +0100 Subject: [PATCH] ePub: comment about subprocess.run instead of os.system to simplify code. --- lib/scripts/docbook2epub.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/scripts/docbook2epub.py b/lib/scripts/docbook2epub.py index da2fbf9897..9354b83e49 100644 --- a/lib/scripts/docbook2epub.py +++ b/lib/scripts/docbook2epub.py @@ -51,6 +51,7 @@ if __name__ == '__main__': # On Windows, it is typical to have spaces in folder names, and that requires to wrap the whole command # in quotes. On Linux, this might create errors when starting the command. quoted_command = '"' + command + '"' + # This could be simplified by using subprocess.run, but this requires Python 3.5. if os.system(quoted_command) != 0: print('docbook2epub fails')