summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAda Isopods <me@bathynomus.xyz>2024-12-01 22:45:40 -0700
committerAda Isopods <me@bathynomus.xyz>2026-10-21 23:26:23 -0600
commitcff9bc052b4d959dac3810e9bdc74067b64b6269 (patch)
tree526844287e1a6ab1154eb46b9b3125859d16256d
parente365da6702e3d7307c0ff92022c3ea504114fd7f (diff)
fix file path issue causing generate.py to fail when run by a cronjob
-rw-r--r--generate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generate.py b/generate.py
index 0102455..9e94910 100644
--- a/generate.py
+++ b/generate.py
@@ -45,7 +45,7 @@ with open(log_path, "w") as outfile:
outfile.write(json.dumps(posts_log[-config__.log_length:]))
if(config__.emojis == True):
- emojis = json.load(open("emojis.json"))
+ emojis = json.load(open(dir_path + "/emojis.json"))
for emoji in emojis:
text = text.replace(emoji, ":"+emoji+":")