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:
parent
108f7e2403
commit
baf637f652
1 changed files with 2 additions and 1 deletions
3
color.py
3
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)
|
||||
|
|
Loading…
Reference in a new issue