mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fix pandac.PandaModules import error with Python 3 (thanks, tzaeru!)
This commit is contained in:
parent
da6140a8cc
commit
1206d93813
@ -2648,7 +2648,7 @@ for module in panda_modules:
|
|||||||
panda_modules_code += """
|
panda_modules_code += """
|
||||||
try:
|
try:
|
||||||
from panda3d.%s import *
|
from panda3d.%s import *
|
||||||
except ImportError, err:
|
except ImportError as err:
|
||||||
if "No module named %s" not in str(err):
|
if "No module named %s" not in str(err):
|
||||||
raise""" % (module, module)
|
raise""" % (module, module)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user