1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-19 16:03:48 +02:00

fix relative path when using cron

This commit is contained in:
Lukas Winkler 2020-02-07 18:48:19 +01:00
parent 108f7e2403
commit baf637f652
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -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)