Issue #1257: pypies add base group if not specified

Change-Id: I3c770b63546790c0ae681e5abce78d117d502d0d

Former-commit-id: 510404856e79373c9895bda235e434afbbcd71ed
This commit is contained in:
Richard Peter 2012-10-15 16:11:42 -05:00
parent 2c89c1ecd6
commit cd3ad6cb4a

View file

@ -662,7 +662,10 @@ class H5pyDataStore(IDataStore.IDataStore):
grp = f['/']
else:
try:
grp = f[name]
group=name
if not group.startswith('/'):
group = '/' + group
grp = f[group]
except:
raise StorageException("No group " + name + " found")