summaryrefslogtreecommitdiff
path: root/client/modules
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-19 12:04:04 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-19 12:10:22 +0200
commit259c5798024d3a4136d55e6ffd2035b46df98fcb (patch)
treeeffbe12ac3b1f2280ad8ba8410e2b1f0b47fd77b /client/modules
parentc1ffb7015cf7385f5e374d0958d7d57bd3fdd31d (diff)
downloadjasper-client-259c5798024d3a4136d55e6ffd2035b46df98fcb.tar.gz
jasper-client-259c5798024d3a4136d55e6ffd2035b46df98fcb.zip
Use jasperpath in client/modules/Joke.py
Diffstat (limited to 'client/modules')
-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 = ""