diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-19 12:04:04 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-19 12:10:22 +0200 |
| commit | 259c5798024d3a4136d55e6ffd2035b46df98fcb (patch) | |
| tree | effbe12ac3b1f2280ad8ba8410e2b1f0b47fd77b /client/modules/Joke.py | |
| parent | c1ffb7015cf7385f5e374d0958d7d57bd3fdd31d (diff) | |
| download | jasper-client-259c5798024d3a4136d55e6ffd2035b46df98fcb.tar.gz jasper-client-259c5798024d3a4136d55e6ffd2035b46df98fcb.zip | |
Use jasperpath in client/modules/Joke.py
Diffstat (limited to 'client/modules/Joke.py')
| -rw-r--r-- | client/modules/Joke.py | 3 |
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 = "" |
