mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -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 += """
|
||||
try:
|
||||
from panda3d.%s import *
|
||||
except ImportError, err:
|
||||
except ImportError as err:
|
||||
if "No module named %s" not in str(err):
|
||||
raise""" % (module, module)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user