From 92061df3ed3f8c2ec86ee839dfb0df77a50ed778 Mon Sep 17 00:00:00 2001 From: Megidd Date: Wed, 17 Apr 2024 10:10:40 -0700 Subject: [PATCH] Fix a bug with Ghostscript path detection --- printer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printer.py b/printer.py index 492b867..e2a16b8 100644 --- a/printer.py +++ b/printer.py @@ -30,7 +30,7 @@ path=gsDir+os.sep+f if os.path.isdir(path) and f.startswith('gs'): try: - val=float(f[2:]) + val=float(f[2:7]) # Example: if `f` equals to `gs10.03.0` then `f[2:7]` would give `10.03` which is what we expect. except ValueError: val=0.0 if bestVersion