From baf637f65299e00e81caf9ac56961992c1cc7abb Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Fri, 7 Feb 2020 18:48:19 +0100 Subject: [PATCH] fix relative path when using cron --- color.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/color.py b/color.py index 771609c..e167fd6 100644 --- a/color.py +++ b/color.py @@ -17,7 +17,8 @@ def to_rgb_string(r: float, g: float, b: float) -> str: return "{0:02x}{1:02x}{2:02x}".format(r, g, b) -colorjs = Path("./web/color.js") +cwd = Path(__file__).resolve().parent +colorjs = cwd / Path("./web/color.js") if config.sentryDSN: client = sentry_sdk.init(dsn=config.sentryDSN)