1
0
Fork 0

use absolute paths instead of relative

This commit is contained in:
Nick Sweeting 2017-10-30 03:19:52 -05:00
parent 734c99cfdb
commit 597a5f6997
2 changed files with 2 additions and 2 deletions

View file

@ -34,8 +34,9 @@ INDEX_ROW_TEMPLATE = os.getenv('INDEX_ROW_TEMPLATE', 'templates/index_ro
### Output Paths
ROOT_FOLDER = os.path.dirname(os.path.abspath(__file__))
HTML_FOLDER = os.path.join(ARCHIVE_DIR, 'html')
HTML_FOLDER = os.path.join(ROOT_FOLDER, ARCHIVE_DIR, 'html')
ARCHIVE_FOLDER = os.path.join(HTML_FOLDER, 'archive')
os.chdir(ROOT_FOLDER)
# ******************************************************************************
# ********************** Do not edit below this point **************************

View file

@ -146,7 +146,6 @@ def parse_rss_export(rss_file):
def parse_bookmarks_export(html_file):
"""Parse netscape-format bookmarks export files (produced by all browsers)"""
html_file.seek(0)
pattern = re.compile("<a href=\"(.+?)\" add_date=\"(\\d+)\"[^>]*>(.+)</a>", re.UNICODE | re.IGNORECASE)
for line in html_file: