diff options
| author | Pjotr Prins | 2026-04-05 11:15:23 +0200 |
|---|---|---|
| committer | Pjotr Prins | 2026-04-05 11:15:23 +0200 |
| commit | 433e5670464565948ead89097190b303168e27f0 (patch) | |
| tree | 5172e1c30e117d8e8503010c14894c3a2414594a /more_functions.py | |
| parent | 45be8b7f1e4bc046fd2e5b1a6bdf4c6db4057788 (diff) | |
| download | genecup-433e5670464565948ead89097190b303168e27f0.tar.gz | |
Settings now use edirect updated EDIRECT_LOCAL_ARCHIVE
Diffstat (limited to 'more_functions.py')
| -rwxr-xr-x | more_functions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/more_functions.py b/more_functions.py index ef43e30..96e20e5 100755 --- a/more_functions.py +++ b/more_functions.py @@ -200,14 +200,14 @@ def searchArchived(sets, query, filetype,sents, path_user): gwas_json+="{ \"id\": \"" + edgeID + "\", \"source\": \"" + query + "\", \"target\": \"" + key + "\", \"sentCnt\": \"" + str(catCnt[key]) + "\", \"url\":\"/sentences?edgeID=" + edgeID + "\" },\n" return(nodes+edges,gwas_json,sn_file) -pubmed_path=os.environ.get("EDIRECT_PUBMED_MASTER", "./minipubmed") +pubmed_path=os.environ.get("EDIRECT_LOCAL_ARCHIVE", "./minipubmed") print(f" pubmed_path={pubmed_path}") if not os.path.isdir(pubmed_path): - print(f"ERROR: EDIRECT_PUBMED_MASTER directory not found: {pubmed_path}") + print(f"ERROR: EDIRECT_LOCAL_ARCHIVE directory not found: {pubmed_path} - note this is a recent env variable that replaces the others") raise SystemExit(1) -testdir = os.path.join(pubmed_path, "Archive", "01") +testdir = os.path.join(pubmed_path, "pubmed", "Archive", "00") if not os.path.isdir(testdir): - print(f"ERROR: PubMed/Archive not found in {pubmed_path}") + print(f"ERROR: PubMed/Archive not found in {testdir} (EDIRECT_LOCAL_ARCHIVE={pubmed_path})") raise SystemExit(1) raise SystemExit(1) |
