create path in case it does not exists, persistentData

This commit is contained in:
cimatosa 2015-06-15 16:13:21 +02:00
parent 6ea374595c
commit af917e327e

View file

@ -44,7 +44,10 @@ class PersistentDataStructure(object):
self._name = name
self._path = abspath(path)
if not exists(self._path):
raise RuntimeError("given path does not exists ({} -> {})".format(path, self._path))
print("given path does not exists ({} -> {})".format(path, self._path))
print("create path")
os.makedirs(self._path)
self.verbose = verbose