From 1d0c87e2abe5ec7aa78f4b3dbc629fd610fd11ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Wed, 21 Dec 2022 08:27:59 -0500 Subject: [PATCH] Make playing sound dependencies only used if wanted --- pomodoroprompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomodoroprompt.py b/pomodoroprompt.py index 5b11c52..051490a 100644 --- a/pomodoroprompt.py +++ b/pomodoroprompt.py @@ -7,7 +7,6 @@ import time from datetime import datetime, timedelta from pathlib import Path from pytz import timezone -from playsound import playsound import pytz @@ -120,6 +119,7 @@ def main(): print('Working on: ' + whatnext) countdown_to(end) if not QUIET: + from playsound import playsound playsound('res/timesup.aac') whatdid = pomodoro_prompt_report(whatnext) record_task(whatnext, whatdid, start)