From 1da17fe7495e3d84e0f67366ac8dc0b29616f184 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 28 Jan 2012 14:13:17 +0000 Subject: [PATCH] this should fix the Pmw stuff --- direct/src/p3d/thirdparty.pdef | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/direct/src/p3d/thirdparty.pdef b/direct/src/p3d/thirdparty.pdef index d2405e57f2..175e40bed2 100644 --- a/direct/src/p3d/thirdparty.pdef +++ b/direct/src/p3d/thirdparty.pdef @@ -38,8 +38,15 @@ class tk(package): 'direct.tkpanels', 'direct.tkwidgets') - module('Pmw.Pmw_1_3.lib.*', 'Pmw.Pmw_1_2.lib.*') - module('Pmw') + try: + import Pmw + except ImportError: + Pmw = None + + if Pmw is not None: + sys.modules['Pmw'] = sys.modules['_Pmw'] + sys.modules['Pmw'].__name__ = 'Pmw' + module('Pmw', 'Pmw.*') class sqlite(package): config(display_name = "SQLite Interface")