From 5e7d11470ecf99caf526ada509143d19848e1414 Mon Sep 17 00:00:00 2001 From: Abhorrent_Anger Date: Tue, 29 Oct 2019 18:28:20 +0200 Subject: [PATCH] Removed fStrings for backwards compatibility --- eyestrainreminder/EyeStrainReminder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eyestrainreminder/EyeStrainReminder.py b/eyestrainreminder/EyeStrainReminder.py index 6ed664c..b2766de 100755 --- a/eyestrainreminder/EyeStrainReminder.py +++ b/eyestrainreminder/EyeStrainReminder.py @@ -36,8 +36,8 @@ def update_icon(): icon.icon = image def get_image(): - theme = [[f"{DIR}/files/eye_light.png", f"{DIR}/files/eye_dark.png"], - [f"{DIR}/files/eye_dark.png", f"{DIR}/files/eye_light.png"]] + theme = [[DIR + "/files/eye_light.png", DIR + "/files/eye_dark.png"], + [DIR + "/files/eye_dark.png", DIR + "/files/eye_light.png"]] return Image.open(theme[invert_icons][disable_notifs]) def generate_menu_items(): @@ -97,7 +97,7 @@ def parse_args(): parser.add_argument("-i", "--invert_icons", action="store_true", default=False, help="Default to the dark icon for light themes") parser.add_argument("-m", "--mute", action="store_true", default=False, help="Mute notification sounds by default") parser.add_argument("-n", "--disable_notifs", action="store_true", default=False, help="Disable notifications by default") - parser.add_argument("-s", "--sound", action="store", default=f"{DIR}/files/default.wav", help="Custom notification sound") + parser.add_argument("-s", "--sound", action="store", default=DIR + "/files/default.wav", help="Custom notification sound") args = parser.parse_args() globals().update(args.__dict__)