vars refactor and, stub file to type annotation and add way to take version #3

Merged
SiberiaBreadFactory merged 3 commits from a2p1k02/fb3test:master into master 2021-05-24 12:30:46 +00:00
3 changed files with 9 additions and 4 deletions
Showing only changes of commit 51c9bb05c6 - Show all commits

Binary file not shown.

View File

@ -1,6 +1,4 @@
from zipfile import ZipFile
# from bs4 import BeautifulSoup
# from lxml import etree
def reader(path_to_file):

View File

@ -1,4 +1,11 @@
from fb3_reader import fb3
from sys import argv
from fb3_reader import fb3, __version__
if __name__ == '__main__':
fb3.reader(input("Enter path to file: "))
try:
if argv[1] == "--version" or argv[1] == "-v":
print(__version__)
else:
fb3.reader(input("Enter path to file: "))
except IndexError:
fb3.reader(input("Enter path to file: "))