From f96eee4e478c19322bf3fd603b1fd34693e94949 Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Sat, 3 Feb 2024 08:04:18 +0000 Subject: [PATCH] fix: executable python file Make the Python file executable. --- README.md | 4 ++-- bookbot.py => bookbot | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) rename bookbot.py => bookbot (99%) mode change 100644 => 100755 diff --git a/README.md b/README.md index c1cc9da..b1578e9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/bookbot.py b/bookbot old mode 100644 new mode 100755 similarity index 99% rename from bookbot.py rename to bookbot index 2260cf7..824e920 --- a/bookbot.py +++ b/bookbot @@ -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.