diff options
| author | Scott Gasch <[email protected]> | 2021-09-26 08:28:01 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-09-26 08:28:01 -0700 |
| commit | a8da0e2eca96cedaf582bc41ab82ec4ff87e443c (patch) | |
| tree | 57b3733784ea129697926e794a9a99a77368b3e7 /cached/weather_data.py | |
| parent | d2730e42f1160d45ab6c7780987b16ae83c616f6 (diff) | |
Cached weather data.
Diffstat (limited to 'cached/weather_data.py')
| -rw-r--r-- | cached/weather_data.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cached/weather_data.py b/cached/weather_data.py index 4c46448..78f7ade 100644 --- a/cached/weather_data.py +++ b/cached/weather_data.py @@ -3,6 +3,7 @@ from dataclasses import dataclass import datetime import json +import os from typing import List import urllib.request @@ -19,7 +20,7 @@ cfg = config.add_commandline_args( cfg.add_argument( '--weather_data_cachefile', type=str, - default='/home/scott/.weather_summary_cache', + default=f'{os.environ["HOME"]}/.weather_summary_cache', metavar='FILENAME', help='File in which to cache weather data' ) |
