We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ef0662 commit 8c512baCopy full SHA for 8c512ba
inat_fetcher/src/fetcher.py
@@ -12,10 +12,11 @@
12
p = Path(__file__).parents[1]
13
14
# Set up paths and filenames
15
-data_in_path = "/data/in/"
+data_in_path = p / "data" / "in"
16
+data_in_path.mkdir(parents=True, exist_ok=True)
17
output_filename = "inat_observations_raw"
18
filename_suffix = "csv"
-path_to_output_file = os.path.join(str(p) + data_in_path, output_filename + "." + filename_suffix)
19
+path_to_output_file = data_in_path / f"{output_filename}.{filename_suffix}"
20
21
# import env variable
22
access_token = os.getenv("INATURALIST_ACCESS_TOKEN")
0 commit comments