Skip to content

Commit

Permalink
Integrate randomtext with setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Nov 3, 2013
1 parent 4e04989 commit 0e7e7f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@
["summon", "summon"],
["fortune", "fortune --help"],
["godel", "godel"],
["random-number", "random-number --help"]]
["random-number", "random-number --help"],
["randomtext", "randomtext"]]

executable_scripts = [ 'json-parse.py', 'xkcd-fetch.py', 'xkcd-search.py',
'level_up.py', 'summon.py', 'fortune.py', 'godel.py',
'random-number.py', 'rshelp.py' ]
'random-number.py', 'rshelp.py', 'randomtext.py' ]
python_modules = 'src/xkcd-fetch.py src/level_up.py'.split()

def main ( ):
Expand Down
2 changes: 1 addition & 1 deletion src/randomtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def generate_random_text(self, size=15):
#return ' '.join(self.appendKeywords(generated_words))

def usage():
print ('Usage: python randomtext.py [PATH/FILE] [NUMBER OF WORDS IN THE OUTPUT] [optional: output file]')
print ('Usage: randomtext [PATH/FILE] [NUMBER OF WORDS IN THE OUTPUT] [optional: output file]')

def writeFile(toWrite, path):
try:
Expand Down

0 comments on commit 0e7e7f0

Please sign in to comment.