summaryrefslogtreecommitdiff
path: root/morphlib/__init__.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-09-20 14:22:31 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-09-25 12:50:21 +0000
commit8a003f588136a9f8eda7df876ed6c059dd6658f4 (patch)
tree4d960f970d31c317070691486e8ce767ab162b86 /morphlib/__init__.py
parent8bb01ef1b85794b8c865dc1fdb50c02acbbe3216 (diff)
downloadmorph-8a003f588136a9f8eda7df876ed6c059dd6658f4.tar.gz
morphlib: Add SystemMetadataDir class
This provides access to the /baserock directory as if it were a dict, abstracting away the details of how to get data out of it. The abstraction is useful since it is easier to use than accessing /baserock yourself, and allows the storage format to be changed more easily. Keys with / in may be supported in the future. since there have been discussions about allowing morphologies to be placed in subdirectories. Adding this support would require creating and removing directory components when values are set and deleted respectively. Iterating would require using os.walk instead of glob.iglob, since python doesn't support ** in globs.
Diffstat (limited to 'morphlib/__init__.py')
-rw-r--r--morphlib/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/morphlib/__init__.py b/morphlib/__init__.py
index b1e3c7c3..7eb3f975 100644
--- a/morphlib/__init__.py
+++ b/morphlib/__init__.py
@@ -78,6 +78,7 @@ import sourcepool
import stagingarea
import stopwatch
import sysbranchdir
+import systemmetadatadir
import tempdir
import util
import workspace