diff --git a/bin/gopro-dashboard.py b/bin/gopro-dashboard.py index 40eac99a..46ae673a 100644 --- a/bin/gopro-dashboard.py +++ b/bin/gopro-dashboard.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import datetime import sys +import os from importlib import metadata from pathlib import Path from typing import Optional @@ -316,6 +317,9 @@ def fmtdt(dt: datetime.datetime): log("...Stopping...") pass finally: + if redirect: + os.remove(redirect) + for t in [draw_timer]: log(t)