Skip to content

Commit

Permalink
Move path to defined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Oct 5, 2024
1 parent ed2f5ca commit 1fab540
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/scribe_data/wikidata/query_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,13 @@ def query_data(languages=None, word_types=None, overwrite=None):
json.dump(results_final, json_file, ensure_ascii=False, indent=0)

# Call the corresponding formatting file.
os.system(
f'python3 "{PATH_TO_LANGUAGE_EXTRACTION_FILES / lang / target_type / f"format_{target_type}.py"}"'
formatting_file_path = (
PATH_TO_LANGUAGE_EXTRACTION_FILES
/ lang
/ target_type
/ f"format_{target_type}.py"
)
os.system(f"python3 {formatting_file_path}")

with open(
Path("scribe_data_json_export")
Expand Down

0 comments on commit 1fab540

Please sign in to comment.