projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cached weather data.
[python_utils.git]
/
cached
/
weather_data.py
diff --git
a/cached/weather_data.py
b/cached/weather_data.py
index 4c464483386b103c4a3618174e22a3e3f0b3e433..78f7ade4b571a01436cf79876fc1b540d5ee52b3 100644
(file)
--- a/
cached/weather_data.py
+++ b/
cached/weather_data.py
@@
-3,6
+3,7
@@
from dataclasses import dataclass
import datetime
import json
from dataclasses import dataclass
import datetime
import json
+import os
from typing import List
import urllib.request
from typing import List
import urllib.request
@@
-19,7
+20,7
@@
cfg = config.add_commandline_args(
cfg.add_argument(
'--weather_data_cachefile',
type=str,
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'
)
metavar='FILENAME',
help='File in which to cache weather data'
)