Skip to content

Commit 4e4cdae

Browse files
committed
[RDFWriter] Fix Broken Install Via Manifest
By adding section_subclasses.yaml to MANIFEST the quick fix in rdf_converter.py/RDFWriter is replaced. Related to issue #212.
1 parent 45ca2bc commit 4e4cdae

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include LICENSE
22
include README.rst
33
include odml/info.json
4+
include doc/section_subclasses.yaml

odml/tools/rdf_converter.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,12 @@ def __init__(self, odml_documents):
4949
subclass_path = os.path.join(dirname(dirname(dirname(abspath(__file__)))),
5050
'doc', 'section_subclasses.yaml')
5151

52-
if os.path.isfile(subclass_path):
53-
with open(subclass_path, "r") as f:
54-
try:
55-
self.section_subclasses = yaml.load(f)
56-
except yaml.parser.ParserError as err:
57-
print(err)
58-
return
52+
with open(subclass_path, "r") as f:
53+
try:
54+
self.section_subclasses = yaml.load(f)
55+
except yaml.parser.ParserError as err:
56+
print(err)
57+
return
5958

6059
def convert_to_rdf(self):
6160
self.hub_root = URIRef(odmlns.Hub)

0 commit comments

Comments
 (0)