diff --git a/storage.py b/storage.py index 1e215c4..cfbb3dc 100644 --- a/storage.py +++ b/storage.py @@ -116,6 +116,7 @@ def save(fname,d): # make sure the object is dict (recursively) this allows reading it # without the DataStorage module d = objToDict(d,recursive=True) + d['filename'] = fname extension = os.path.splitext(fname)[1] log.info("Saving storage file %s"%fname) try: