From e0358218c3497ddd1c03cbdeb7f8c53b4752d9cf Mon Sep 17 00:00:00 2001 From: Sundareswar Pullela Date: Wed, 31 May 2023 15:28:46 -0700 Subject: [PATCH] looking for problem in ARAX_database_manager #1914 --- .github/workflows/pytest.yml | 6 +++--- code/ARAX/ARAXQuery/ARAX_database_manager.py | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 05508c943..2a909c5a6 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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 diff --git a/code/ARAX/ARAXQuery/ARAX_database_manager.py b/code/ARAX/ARAXQuery/ARAX_database_manager.py index 5b6e8dba1..f628c0d8e 100644 --- a/code/ARAX/ARAXQuery/ARAX_database_manager.py +++ b/code/ARAX/ARAXQuery/ARAX_database_manager.py @@ -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']) @@ -458,4 +460,4 @@ def main(): if __name__ == "__main__": - main() + main() \ No newline at end of file