File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 11import sys
22from html2excel import ExcelParser
33
4-
5- if __name__ == "__main__" :
4+ def run ():
65 if len (sys .argv ) == 3 :
76 file_path = sys .argv [1 ]
87 save_path = sys .argv [2 ]
1211 # First argument for file name, we'll ignore that
1312 print ("Expected 2 arguments. Got {num}" .format (num = len (sys .argv )- 1 ))
1413
14+ if __name__ == "__main__" :
15+ run ()
16+
1517# TODO: handle exceptions
Original file line number Diff line number Diff line change 55
66setup (
77 name = "html2excel" ,
8- version = "0.0.2 " ,
8+ version = "0.0.4 " ,
99 author = "Neema Tsering" ,
1010 author_email = "ntvirus333@gmail.com" ,
1111 description = ("Convert HTML Table to Excel file" ),
1212 long_description = readme ,
1313 long_description_content_type = "text/markdown" ,
1414 install_requires = ['bs4' , 'openpyxl' ],
1515 license = "MIT" ,
16- packages = ["html2excel" ],
17- entry_points = {
18- "console_scripts" : [
19- "html2excel = __main__:main"
20- ]
21- }
16+ packages = find_packages (),
2217)
You can’t perform that action at this time.
0 commit comments