Skip to content

Commit 9e23e9d

Browse files
authored
Latest updates of dataModel parser (#8863)
1 parent c683d04 commit 9e23e9d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

scripts/datamodel-doc/ALICEO2includeFile.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -569,12 +569,12 @@ def printSingleTable(self, tabs, uses, tab2u):
569569
print(" </div>")
570570

571571
# print header file
572-
if tab2u.hfile.startswith(self.O2path):
573-
href2u = self.O2href
574-
path2u = self.O2path
575-
else:
572+
if "O2Physics" in tab2u.hfile:
576573
href2u = self.O2Physicshref
577574
path2u = self.O2Physicspath
575+
else:
576+
href2u = self.O2href
577+
path2u = self.O2path
578578

579579
hf2u = O2DMT.block(tab2u.hfile.split(path2u)[
580580
1:], False).strip().lstrip("/")
@@ -633,12 +633,12 @@ def printTables(self, DMtype, tabs, uses, CER, tabs2u):
633633
print("#### ", CER[2])
634634

635635
# add source code information if available
636-
if CER[0].startswith(self.O2path):
637-
href2u = self.O2href
638-
path2u = self.O2path
639-
else:
636+
if "O2Physics" in CER[0]:
640637
href2u = self.O2Physicshref
641638
path2u = self.O2Physicspath
639+
else:
640+
href2u = self.O2href
641+
path2u = self.O2path
642642

643643
if DMtype == 1:
644644
if href2u != "":

0 commit comments

Comments
 (0)