mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
CMake: Fix pandac.PandaModules generation
This commit is contained in:
parent
873c6b48d6
commit
65d11a4cfa
@ -72,7 +72,7 @@ print(\"Warning: pandac.PandaModules is deprecated, import from panda3d.core ins
|
|||||||
foreach(module ${ALL_INTERROGATE_MODULES})
|
foreach(module ${ALL_INTERROGATE_MODULES})
|
||||||
file(APPEND "${PROJECT_BINARY_DIR}/pandac/PandaModules.py" "
|
file(APPEND "${PROJECT_BINARY_DIR}/pandac/PandaModules.py" "
|
||||||
try:
|
try:
|
||||||
from panda3d.${module} import *
|
from ${module} import *
|
||||||
except ImportError as err:
|
except ImportError as err:
|
||||||
if not (\"No module named\" in str(err) and \"${module}\" in str(err)):
|
if not (\"No module named\" in str(err) and \"${module}\" in str(err)):
|
||||||
raise
|
raise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user