Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,13 +10,17 @@ import subprocess
|
|
10 |
|
11 |
import shutil
|
12 |
|
13 |
-
if not shutil.which("esummary"):
|
14 |
subprocess.run(
|
15 |
'yes | sh -c "$(wget -q https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/install-edirect.sh -O -)"',
|
16 |
shell=True
|
17 |
)
|
18 |
os.environ["PATH"] += f":{os.environ['HOME']}/edirect"
|
19 |
-
print("EDirect esummary found at:", shutil.which("esummary"))
|
|
|
|
|
|
|
|
|
20 |
|
21 |
|
22 |
@lru_cache(maxsize=128)
|
|
|
10 |
|
11 |
import shutil
|
12 |
|
13 |
+
'''if not shutil.which("esummary"):
|
14 |
subprocess.run(
|
15 |
'yes | sh -c "$(wget -q https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/install-edirect.sh -O -)"',
|
16 |
shell=True
|
17 |
)
|
18 |
os.environ["PATH"] += f":{os.environ['HOME']}/edirect"
|
19 |
+
print("EDirect esummary found at:", shutil.which("esummary"))'''
|
20 |
+
|
21 |
+
# Force PATH to include edirect (again, just to be safe)
|
22 |
+
os.environ["PATH"] += f":{os.environ['HOME']}/edirect"
|
23 |
+
print("Current PATH:", os.environ["PATH"])
|
24 |
|
25 |
|
26 |
@lru_cache(maxsize=128)
|