diff options
| -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 |
