From 03e377091da4e8d2712ce4cdfb3b28c6e189998a Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 10 Aug 2015 02:01:52 +0200 Subject: [PATCH] Add in 'rocket' module for rocket package --- direct/src/p3d/panda3d.pdef | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/direct/src/p3d/panda3d.pdef b/direct/src/p3d/panda3d.pdef index 4f3df21c97..87a42eff2b 100644 --- a/direct/src/p3d/panda3d.pdef +++ b/direct/src/p3d/panda3d.pdef @@ -362,8 +362,16 @@ class rocket(package): config(display_name = "Panda3D libRocket support") require('panda3d') - module('panda3d.rocket', required = True) - module('_rocketcore', '_rocketcontrols') + file('rocket.py', extract = True, text = """ +from _rocketcore import * +try: + from _rocketcontrols import * +except ImportError: + pass +""") + + module('panda3d.rocket', '_rocketcore', required = True) + module('_rocketcontrols') file('libp3rocket.dll', required = True) class vrpn(package):