mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -04:00
use absolute paths instead of relative
This commit is contained in:
parent
734c99cfdb
commit
597a5f6997
2 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,9 @@ INDEX_ROW_TEMPLATE = os.getenv('INDEX_ROW_TEMPLATE', 'templates/index_ro
|
||||||
|
|
||||||
### Output Paths
|
### Output Paths
|
||||||
ROOT_FOLDER = os.path.dirname(os.path.abspath(__file__))
|
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')
|
ARCHIVE_FOLDER = os.path.join(HTML_FOLDER, 'archive')
|
||||||
|
os.chdir(ROOT_FOLDER)
|
||||||
|
|
||||||
# ******************************************************************************
|
# ******************************************************************************
|
||||||
# ********************** Do not edit below this point **************************
|
# ********************** Do not edit below this point **************************
|
||||||
|
|
1
parse.py
1
parse.py
|
@ -146,7 +146,6 @@ def parse_rss_export(rss_file):
|
||||||
def parse_bookmarks_export(html_file):
|
def parse_bookmarks_export(html_file):
|
||||||
"""Parse netscape-format bookmarks export files (produced by all browsers)"""
|
"""Parse netscape-format bookmarks export files (produced by all browsers)"""
|
||||||
|
|
||||||
|
|
||||||
html_file.seek(0)
|
html_file.seek(0)
|
||||||
pattern = re.compile("<a href=\"(.+?)\" add_date=\"(\\d+)\"[^>]*>(.+)</a>", re.UNICODE | re.IGNORECASE)
|
pattern = re.compile("<a href=\"(.+?)\" add_date=\"(\\d+)\"[^>]*>(.+)</a>", re.UNICODE | re.IGNORECASE)
|
||||||
for line in html_file:
|
for line in html_file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue