Skip to content

Commit

Permalink
Fix for importing ClassesDefXmlUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Dec 12, 2024
1 parent 2883d1e commit d20d9a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion FWCore/Reflection/scripts/edmCheckClassVersion
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#! /usr/bin/env python3

import sys
import FWCore.Reflection.ClassesDefXmlUtils as ClassesDefUtils
try:
import FWCore.Reflection.ClassesDefXmlUtils as ClassesDefUtils
except:
import os
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)),"python"))
import ClassesDefXmlUtils as ClassesDefUtils

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

0 comments on commit d20d9a4

Please sign in to comment.