diff options
author | David Robillard <d@drobilla.net> | 2011-03-11 18:43:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-11 18:43:24 +0000 |
commit | ee4c697a4577008e3dc4c4c143ca2d55dfac5913 (patch) | |
tree | 947b3bc15136a951a2a17180ea4de0ae9eecf7f3 /lv2specgen/lv2specgen.py | |
parent | 04396affa1a72ea4a51db1fd996860397e83e153 (diff) | |
download | lv2-ee4c697a4577008e3dc4c4c143ca2d55dfac5913.tar.xz |
Don't re-use RDF.Parser, which seems to cause problems...
Diffstat (limited to 'lv2specgen/lv2specgen.py')
-rwxr-xr-x | lv2specgen/lv2specgen.py | 3 |
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: |