File: 01_fix-SyntaxWarning.patch

package info (click to toggle)
gourmand 1.1.0%2Breally1.1.0-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 26,208 kB
  • sloc: python: 36,323; xml: 53; makefile: 13; sh: 8
file content (11 lines) | stat: -rw-r--r-- 628 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/src/gourmand/plugins/import_export/pdf_plugin/print_plugin.py
+++ b/src/gourmand/plugins/import_export/pdf_plugin/print_plugin.py
@@ -53,7 +53,7 @@ class WindowsPDFPrinter:
             import winreg
             from subprocess import Popen
 
-            regPathKey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"Software\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe")
+            regPathKey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"AcroRd32.exe")
             regPathValue, regPathType = winreg.QueryValueEx(regPathKey, "")
             if regPathType != winreg.REG_SZ:
                 raise TypeError