Skip to content

Commit b816a0a

Browse files
committed
work around for weird import error
1 parent a8e2181 commit b816a0a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pygccxml/declarations/calldef.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,12 @@ def __remove_parent_fname( self, demangled ):
312312
return demangled
313313

314314
def _get_demangled_name( self ):
315+
if type_traits==None:
316+
# this shouldn't be necessary; the same code exists in the constructor
317+
from . import type_traits as tt
318+
global type_traits
319+
type_traits = tt
320+
315321
if not self.demangled:
316322
self._demangled_name = ''
317323

0 commit comments

Comments
 (0)