Skip to content

Commit cc91330

Browse files
authored
Merge pull request #46921 from smuzaffar/142x-fix-import-ClassesDefXmlUtils
[14.2.X]Fix for importing ClassesDefXmlUtils
2 parents 905fcd4 + fcb4a5b commit cc91330

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)