Skip to content

Commit fcb4a5b

Browse files
committed
[14.2]Fix for importing ClassesDefXmlUtils
1 parent a74a610 commit fcb4a5b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

FWCore/Reflection/scripts/edmCheckClassVersion

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#! /usr/bin/env python3
22

33
import sys
4-
import FWCore.Reflection.ClassesDefXmlUtils as ClassesDefUtils
4+
try:
5+
import FWCore.Reflection.ClassesDefXmlUtils as ClassesDefUtils
6+
except:
7+
import os
8+
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)),"python"))
9+
import ClassesDefXmlUtils as ClassesDefUtils
510

611
# recursively check the base classes for a class pointer
712
# as building the streamer will crash if base classes are

0 commit comments

Comments
 (0)