ledger: make verify script cwd-independent
This commit is contained in:
1 parent
b155fb5527
commit
83c964c42a
1 file changed
+7
-3
@@ -9,9 +9,13 @@ import json
|
||||
import re
|
||||
import sys
|
||||
|
||||
CSV_PATH = "arxiv-lg-recent.csv"
|
||||
JSON_PATH = "arxiv-lg-recent.json"
|
||||
MD_PATH = "arxiv-lg-recent.md"
|
||||
import os
|
||||
import sys
|
||||
|
||||
BASE = os.path.dirname(os.path.abspath(__file__))
|
||||
CSV_PATH = os.path.join(BASE, "arxiv-lg-recent.csv")
|
||||
JSON_PATH = os.path.join(BASE, "arxiv-lg-recent.json")
|
||||
MD_PATH = os.path.join(BASE, "arxiv-lg-recent.md")
|
||||
ARXIV_ID_RE = re.compile(r"^\d{4}\.\d{5}$")
|
||||
DATE_RE = re.compile(r"^\d{4}-\d{2}-\d{2}$")
|
||||
FIELDS = ["arxiv_id", "title", "authors", "published", "abstract"]
|
||||
|
||||
Reference in new issue
Block a user