Fixing weather api issues

This commit is contained in:
Remy Moll
2020-12-10 11:20:00 +01:00
parent 7debff33ab
commit af839dd842
7 changed files with 53 additions and 31 deletions

0
persistence/log.txt Normal file
View File

View File

@@ -71,3 +71,13 @@ class Variables():
pre = self.read(name)
pre.append(value)
self.write(name, pre)
def read_ext_file(self, path):
"""returns content of given file"""
if not os.path.exists(path):
return "File does not exist"
file = os.open(path,"r")
content = os.read(file)
os.close(file)
return content