From ee4c697a4577008e3dc4c4c143ca2d55dfac5913 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 Mar 2011 18:43:24 +0000 Subject: Don't re-use RDF.Parser, which seems to cause problems... --- lv2specgen/lv2specgen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index b2df07c..5b8b2de 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -672,15 +672,16 @@ def specgen(specloc, docdir, template, instances=False, mode="spec"): global ns_list m = RDF.Model() - p = RDF.Parser(name="guess") try: base = specloc[0:specloc.rfind('/')] # Parse manifest.ttl manifest_path = os.path.join(base, 'manifest.ttl') + p = RDF.Parser(name="guess") p.parse_into_model(m, manifest_path) # Parse ontology file + p = RDF.Parser(name="guess") p.parse_into_model(m, specloc) except IOError, e: -- cgit v1.2.1