mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
showbase: *Global.py modules should not export 'sys' module
This commit is contained in:
parent
a667a303bd
commit
df848965fb
@ -47,6 +47,7 @@ if sys.version_info >= (3, 0):
|
|||||||
else:
|
else:
|
||||||
import __builtin__ as builtins
|
import __builtin__ as builtins
|
||||||
builtins.inspect = inspect
|
builtins.inspect = inspect
|
||||||
|
del sys
|
||||||
|
|
||||||
# this also appears in AIBaseGlobal
|
# this also appears in AIBaseGlobal
|
||||||
if (not __debug__) and __dev__:
|
if (not __debug__) and __dev__:
|
||||||
|
@ -12,6 +12,9 @@ else:
|
|||||||
if '_Pmw' in sys.modules:
|
if '_Pmw' in sys.modules:
|
||||||
sys.modules['_Pmw'].__name__ = '_Pmw'
|
sys.modules['_Pmw'].__name__ = '_Pmw'
|
||||||
|
|
||||||
|
# Don't export this from the module.
|
||||||
|
del sys
|
||||||
|
|
||||||
# Hack to workaround broken Pmw.NoteBook in Python 3
|
# Hack to workaround broken Pmw.NoteBook in Python 3
|
||||||
def bordercolors(root, colorName):
|
def bordercolors(root, colorName):
|
||||||
lightRGB = []
|
lightRGB = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user