Skip to content

Commit 1030a44

Browse files
committed
don't hard-code path that may turn into a config
Signed-off-by: John Seekins <[email protected]>
1 parent 00855ca commit 1030a44

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

file_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import copy
22
import csv
33
import json
4-
import os
54
from schemas import enrichment_print_schema
65
from utils import (
76
_flatdict,
87
logger,
98
)
109

11-
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
12-
1310

1411
def export_to_file(
1512
facilities_data: dict,
@@ -20,7 +17,7 @@ def export_to_file(
2017
logger.warning("No data to export!")
2118
return ""
2219

23-
full_name = f"{SCRIPT_DIR}{os.sep}{filename}.{file_type}"
20+
full_name = f"{filename}.{file_type}"
2421
csv_filtered_keys = ["raw_scrape", "wikipedia_search_query", "wikidata_search_query", "osm_search_query"]
2522
try:
2623
with open(full_name, "w", newline="", encoding="utf-8") as f_out:

0 commit comments

Comments
 (0)