bestlibre / hassio-addons

173 stars 110 forks source link

File I/O Does Not Work in python_exec Addon #82

Closed slomanl1 closed 5 years ago

slomanl1 commented 5 years ago

If I insert the following code snippet into my .py file to be executed by the addon:

'f = open('/share/myfile.txt', 'w') f.write('hi there\n')
f.close()'

The file myfile.txt is neither created nor written in the /share directory