X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk2db.py;h=946dfbdf96e3a9bdaa46d3b8d811908616668ac3;hb=61f4f37267b4f5d200abc5e8cc278d8e946cff26;hp=3f2f25a77d30bdf0db9560348d7b605ccb8a3148;hpb=bb4a3a44cc1de081e4002f2b135053312c78054e;p=bookmarks_db.git diff --git a/bkmk2db.py b/bkmk2db.py index 3f2f25a..946dfbd 100755 --- a/bkmk2db.py +++ b/bkmk2db.py @@ -1,8 +1,8 @@ -#! /usr/local/bin/python -O +#! /usr/bin/env python """ Convert Netscape Navigator's or Mozilla's bookmarks.html to a database - Written by BroytMann. Copyright (C) 1997-2003 PhiloSoft Design + Written by Broytman. Copyright (C) 1997-2003 PhiloSoft Design """ @@ -14,7 +14,7 @@ from bkmk_parser import BkmkParser def run(): optlist, args = getopt(sys.argv[1:], "is") - show_pbar = not __debug__ + show_pbar = True report_stats = 1 for _opt, _arg in optlist: @@ -55,7 +55,7 @@ def run(): if show_pbar: try: - size = os.stat(filename).st_size + size = os.path.getsize(filename) except: print filename, ": no such file" sys.exit(1)