allow to be imported independently

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-04-25 00:34:35 +00:00
parent ebe86b1ea6
commit fb3d05e944

View File

@@ -158,7 +158,7 @@ WXDLLVER = '%d%d' % (VER_MAJOR, VER_MINOR)
#----------------------------------------------------------------------
def msg(text):
if sys.setup_is_main:
if hasattr(sys, 'setup_is_main') and sys.setup_is_main:
print text