diff options
| author | D Delmar Davis <feurig@fromhell.com> | 2025-10-08 15:48:54 -0700 |
|---|---|---|
| committer | D Delmar Davis <feurig@fromhell.com> | 2025-10-08 15:48:54 -0700 |
| commit | e7c20830d3cf98a806f898fe33b8432dad5c6707 (patch) | |
| tree | afe16c9fe99191bc78f3b53731ab02d9c6ccc550 /bin | |
| parent | 0c8e3668fa3f5411e65dfb2fb351bd3d7ff2f511 (diff) | |
assumptions !@$# python
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/readtemp.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/readtemp.py b/bin/readtemp.py index 654b615..daaf32f 100755 --- a/bin/readtemp.py +++ b/bin/readtemp.py @@ -67,6 +67,7 @@ for tempsensorid in i2c.scan(): if (i_can_has_temperature): + tempfile.tempdir="/var/tmp/" # otherwise it tries to make the file on a different filesystem tmpfile =os.path.join(tempfile.gettempdir(),'temp.prom') file = open(tmpfile, 'w') sys.stdout = file |
