summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/modules/Joke.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/modules/Joke.py b/client/modules/Joke.py
index 802047c..c560f4e 100644
--- a/client/modules/Joke.py
+++ b/client/modules/Joke.py
@@ -1,11 +1,12 @@
# -*- coding: utf-8-*-
import random
import re
+import jasperpath
WORDS = ["JOKE", "KNOCK KNOCK"]
-def getRandomJoke(filename="../static/text/JOKES.txt"):
+def getRandomJoke(filename=jasperpath.data('text','JOKES.txt')):
jokeFile = open(filename, "r")
jokes = []
start = ""