fix: executable python file

Make the Python file executable.
This commit is contained in:
Dan Anglin 2024-02-03 08:04:18 +00:00
parent 0f81f83a63
commit f96eee4e47
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
2 changed files with 4 additions and 2 deletions

View file

@ -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
View 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.