From: Robin Dunn Date: Sun, 25 Apr 2004 00:34:35 +0000 (+0000) Subject: allow to be imported independently X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fb3d05e9448379b4f19bffbabbd8610ff9acfb23?ds=inline allow to be imported independently git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/config.py b/wxPython/config.py index c3a5a8a93a..182e2404ec 100644 --- a/wxPython/config.py +++ b/wxPython/config.py @@ -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