Spaces:
Running
Running
import os.path | |
def read_index_list(): | |
here = os.path.dirname(__file__) | |
fname = os.path.join(here, "available_organisms.txt") | |
indexes = ["All Species"] | |
with open(fname) as f: | |
for index in f: | |
indexes.append(index.strip()) | |
return indexes | |