From fb3d05e9448379b4f19bffbabbd8610ff9acfb23 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 25 Apr 2004 00:34:35 +0000 Subject: [PATCH] allow to be imported independently git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2