mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Add back pandac.extension_native_helpers for compatibility
This commit is contained in:
parent
0bdafe45ce
commit
6962f56915
@ -56,6 +56,9 @@ class panda3d(package):
|
||||
'direct.stdpy.*',
|
||||
'direct.task.*')
|
||||
|
||||
# Keep these modules for backward compatibility.
|
||||
module('pandac.PandaModules', 'pandac.extension_native_helpers')
|
||||
|
||||
module('panda3d.core',
|
||||
'panda3d.direct',
|
||||
'panda3d.fx',
|
||||
|
@ -2750,8 +2750,14 @@ except ImportError as err:
|
||||
if "No module named %s" not in str(err):
|
||||
raise""" % (module, module)
|
||||
|
||||
exthelpers_code = """
|
||||
"This module is deprecated. Import from direct.extensions_native.extension_native_helpers instead."
|
||||
from direct.extensions_native.extension_native_helpers import *
|
||||
"""
|
||||
|
||||
if not PkgSkip("PYTHON"):
|
||||
ConditionalWriteFile(GetOutputDir() + '/pandac/PandaModules.py', panda_modules_code)
|
||||
ConditionalWriteFile(GetOutputDir() + '/pandac/extension_native_helpers.py', exthelpers_code)
|
||||
ConditionalWriteFile(GetOutputDir() + '/pandac/__init__.py', '')
|
||||
|
||||
##########################################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user