aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-11 18:43:24 +0000
committerDavid Robillard <d@drobilla.net>2011-03-11 18:43:24 +0000
commitee4c697a4577008e3dc4c4c143ca2d55dfac5913 (patch)
tree947b3bc15136a951a2a17180ea4de0ae9eecf7f3 /lv2specgen
parent04396affa1a72ea4a51db1fd996860397e83e153 (diff)
downloadlv2-ee4c697a4577008e3dc4c4c143ca2d55dfac5913.tar.xz
Don't re-use RDF.Parser, which seems to cause problems...
Diffstat (limited to 'lv2specgen')
-rwxr-xr-xlv2specgen/lv2specgen.py3
1 files changed, 2 insertions, 1 deletions
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: