From 259c5798024d3a4136d55e6ffd2035b46df98fcb Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 19 Sep 2014 12:04:04 +0200 Subject: Use jasperpath in client/modules/Joke.py --- client/modules/Joke.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client') 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 = "" -- cgit v1.3.1