From a2781383f96555b2b5ab397bc28cf903bdcae39e Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 15 Oct 2023 19:40:10 +0200 Subject: [PATCH] use sys.platform instead of os.name --- rendercv/rendering.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rendercv/rendering.py b/rendercv/rendering.py index a168e09..928013f 100644 --- a/rendercv/rendering.py +++ b/rendercv/rendering.py @@ -388,7 +388,7 @@ def run_latex(latex_file_path: str) -> str: output_file_name = latex_file_name.replace(".tex", ".pdf") output_file_path = os.path.join(os.path.dirname(latex_file_path), output_file_name) - if os.name == "nt": + if sys.platform == "win32": # Windows executable = str( files("rendercv").joinpath( @@ -396,14 +396,14 @@ def run_latex(latex_file_path: str) -> str: ) ) - elif os.name == "posix": + elif sys.platform == "linux" or sys.platform == "linux2": # Linux executable = str( files("rendercv").joinpath( "vendor", "TinyTeX", "bin", "x86_64-linux", "lualatex" ) ) - elif os.name == "darwin": + elif sys.platform == "darwin": # MacOS executable = str( files("rendercv").joinpath(