diff --git a/queries.yml b/queries/queries.yml similarity index 100% rename from queries.yml rename to queries/queries.yml diff --git a/scripts/pull_from_dune.py b/scripts/pull_from_dune.py index 9a241f0..39fa8e5 100644 --- a/scripts/pull_from_dune.py +++ b/scripts/pull_from_dune.py @@ -14,7 +14,8 @@ dune = DuneClient.from_env() # Read the queries.yml file -with open('queries.yml', 'r', encoding='utf-8') as file: +queries_yml = os.path.join(os.path.dirname(__file__), '..', 'queries', 'queries.yml') +with open(queries_yml, 'r', encoding='utf-8') as file: data = yaml.safe_load(file) # Extract the query_ids from the data diff --git a/scripts/push_to_dune.py b/scripts/push_to_dune.py index f898205..71b1932 100644 --- a/scripts/push_to_dune.py +++ b/scripts/push_to_dune.py @@ -14,7 +14,8 @@ dune = DuneClient.from_env() # Read the queries.yml file -with open('queries.yml', 'r', encoding='utf-8') as file: +queries_yml = os.path.join(os.path.dirname(__file__), '..', 'queries', 'queries.yml') +with open(queries_yml, 'r', encoding='utf-8') as file: data = yaml.safe_load(file) # Extract the query_ids from the data