From e05abfa17a18e933d38f058c641a7d569d38f54b Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Sat, 3 Apr 2021 16:36:58 +0200 Subject: [PATCH] RFCT Avoid using raw strings for Windows paths --- firefox_decrypt.py | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/firefox_decrypt.py b/firefox_decrypt.py index 77bd557..dbaa316 100755 --- a/firefox_decrypt.py +++ b/firefox_decrypt.py @@ -254,25 +254,26 @@ def load_libnss(): if SYS64: locations: list[str] = [ "", # Current directory or system lib finder - r"C:\Program Files\Mozilla Firefox", - r"C:\Program Files\Mozilla Thunderbird", - r"C:\Program Files\Nightly", - r"C:\Program Files\Waterfox", + "C:\\Program Files\\Mozilla Firefox", + "C:\\Program Files\\Mozilla Thunderbird", + "C:\\Program Files\\Nightly", + "C:\\Program Files\\SeaMonkey", + "C:\\Program Files\\Waterfox", ] else: locations: list[str] = [ "", # Current directory or system lib finder - r"C:\Program Files (x86)\Mozilla Firefox", - r"C:\Program Files (x86)\Mozilla Thunderbird", - r"C:\Program Files (x86)\Nightly", - r"C:\Program Files (x86)\SeaMonkey", - r"C:\Program Files (x86)\Waterfox", + "C:\\Program Files (x86)\\Mozilla Firefox", + "C:\\Program Files (x86)\\Mozilla Thunderbird", + "C:\\Program Files (x86)\\Nightly", + "C:\\Program Files (x86)\\SeaMonkey", + "C:\\Program Files (x86)\\Waterfox", # On windows 32bit these folders can also be 32bit - r"C:\Program Files\Mozilla Firefox", - r"C:\Program Files\Mozilla Thunderbird", - r"C:\Program Files\Nightly", - r"C:\Program Files\SeaMonkey", - r"C:\Program Files\Waterfox", + "C:\\Program Files\\Mozilla Firefox", + "C:\\Program Files\\Mozilla Thunderbird", + "C:\\Program Files\\Nightly", + "C:\\Program Files\\SeaMonkey", + "C:\\Program Files\\Waterfox", ] # If either of the supported software is in PATH try to use it