mirror of
https://github.com/dananglin/bookbot.git
synced 2024-09-08 00:31:20 +01:00
fix: executable python file
Make the Python file executable.
This commit is contained in:
parent
0f81f83a63
commit
f96eee4e47
2 changed files with 4 additions and 2 deletions
|
@ -23,7 +23,7 @@ cd bookbot
|
|||
You can print the program's help message with the `-h` flag.
|
||||
|
||||
```sh
|
||||
python bookbot.py -h
|
||||
./bookbot -h
|
||||
```
|
||||
|
||||
Download a book in text format (e.g. txt, markdown, etc).
|
||||
|
@ -37,7 +37,7 @@ curl -L https://raw.githubusercontent.com/asweigart/codebreaker/master/frankenst
|
|||
Run Bookbot to produce the book report.
|
||||
|
||||
```sh
|
||||
$ python bookbot.py books/frankenstein.txt
|
||||
$ ./bookbot books/frankenstein.txt
|
||||
--- Begin report of books/frankenstein.txt ---
|
||||
77986 words found in the document
|
||||
|
||||
|
|
2
bookbot.py → bookbot
Normal file → Executable file
2
bookbot.py → bookbot
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
'''
|
||||
Bookbot reads a book from a text file and prints out a simple report about it
|
||||
to the standard output.
|
Loading…
Reference in a new issue