Good Idea, how about something like this? --- python/ovs/db/idl.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py index 57495f5..b33d9f8 100644 --- a/python/ovs/db/idl.py +++ b/python/ovs/db/idl.py @@ -1092,10 +1092,13 @@ class SchemaHelper(object): The location on disk of the schema used may be found in the 'schema_location' variable.""" - def __init__(self): + def __init__(self, location=None): """Creates a new Schema object.""" - self.schema_location = "%s/vswitch.ovsschema" % ovs.dirs.PKGDATADIR + if location is None: + location = "%s/vswitch.ovsschema" % ovs.dirs.PKGDATADIR + + self.schema_location = location self._tables = {} def register_columns(self, table, columns): -- 1.7.9.2 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev