vars refactor and, stub file to type annotation and add way to take version #3
Binary file not shown.
@ -1,6 +1,4 @@
|
|||||||
from zipfile import ZipFile
|
from zipfile import ZipFile
|
||||||
# from bs4 import BeautifulSoup
|
|
||||||
# from lxml import etree
|
|
||||||
|
|
||||||
|
|
||||||
def reader(path_to_file):
|
def reader(path_to_file):
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
from fb3_reader import fb3
|
from sys import argv
|
||||||
|
from fb3_reader import fb3, __version__
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
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: "))
|
fb3.reader(input("Enter path to file: "))
|
||||||
|
Loading…
Reference in New Issue
Block a user