Skip to content

Commit

Permalink
looking for problem in ARAX_database_manager #1914
Browse files Browse the repository at this point in the history
  • Loading branch information
sundareswarpullela committed May 31, 2023
1 parent bd857ea commit e035821
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
echo "http://localhost:5008/api/rtxkg2/v1.4" > /mnt/config/kg2_url_override.txt
# - name: Append code dir to GITHUB_PATH # Causing RTXConfiguration import error
# run: echo "$HOME/RTX" >> $GITHUB_PATH
# run: echo $GITHUB_PATH

# - name: Download databases as needed
# run: python3 code/ARAX/ARAXQuery/ARAX_database_manager.py --mnt --skip-if-exists --remove_unused
- name: Download databases as needed
run: python3 $HOME/RTX/code/ARAX/ARAXQuery/ARAX_database_manager.py --mnt --skip-if-exists --remove_unused

- name: Stop any running containers
continue-on-error: true
Expand Down
4 changes: 3 additions & 1 deletion code/ARAX/ARAXQuery/ARAX_database_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
pathlist = os.path.realpath(__file__).split(os.path.sep)
RTXindex = pathlist.index("RTX")
sys.path.append(os.path.sep.join([*pathlist[:(RTXindex + 1)], 'code']))
print(os.path.sep.join([*pathlist[:(RTXindex + 1)], 'code']))
print(sys.path)
from RTXConfiguration import RTXConfiguration

knowledge_sources_filepath = os.path.sep.join([*pathlist[:(RTXindex + 1)], 'code', 'ARAX', 'KnowledgeSources'])
Expand Down Expand Up @@ -458,4 +460,4 @@ def main():


if __name__ == "__main__":
main()
main()

0 comments on commit e035821

Please sign in to comment.