rrd.py: create output directory if it does not exist yet
This commit is contained in:
parent
4f889b102f
commit
8ee4cbcf24
5
rrd.py
5
rrd.py
|
@ -19,6 +19,11 @@ class rrd:
|
||||||
self.currentTimeInt = (int(time.time())/60)*60
|
self.currentTimeInt = (int(time.time())/60)*60
|
||||||
self.currentTime = str(self.currentTimeInt)
|
self.currentTime = str(self.currentTimeInt)
|
||||||
|
|
||||||
|
try:
|
||||||
|
os.stat(self.imagePath)
|
||||||
|
except:
|
||||||
|
os.mkdir(self.imagePath)
|
||||||
|
|
||||||
def checkAndCreateIfNeededGlobalDatabase(self):
|
def checkAndCreateIfNeededGlobalDatabase(self):
|
||||||
""" Creates the global database file iff it did not exist.
|
""" Creates the global database file iff it did not exist.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue