mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Fix cmakelists and use zip
This commit is contained in:
+5
-5
@@ -12,12 +12,12 @@ SET(DEPENDENCIES_DIR CACHE PATH "")
|
||||
LIST(APPEND CMAKE_PREFIX_PATH ${QT_ROOT}/lib/cmake)
|
||||
|
||||
# need to install python
|
||||
IF(EXISTS "${PYTHON_ROOT}/PCbuild/python27.dll")
|
||||
INSTALL(FILES ${PYTHON_ROOT}/PCbuild/python27.dll DESTINATION bin)
|
||||
INSTALL(FILES ${PYTHON_ROOT}/PCbuild/python27.pdb DESTINATION pdb)
|
||||
IF(EXISTS "${PYTHON_ROOT}/PCbuild/python37.dll")
|
||||
INSTALL(FILES ${PYTHON_ROOT}/PCbuild/python37.dll DESTINATION bin)
|
||||
INSTALL(FILES ${PYTHON_ROOT}/PCbuild/python37.pdb DESTINATION pdb)
|
||||
ELSEIF(EXISTS "${PYTHON_ROOT}/PCbuild/amd64/python27.dll")
|
||||
INSTALL(FILES ${PYTHON_ROOT}/PCbuild/amd64/python27.dll DESTINATION bin)
|
||||
INSTALL(FILES ${PYTHON_ROOT}/PCbuild/amd64/python27.pdb DESTINATION pdb)
|
||||
INSTALL(FILES ${PYTHON_ROOT}/PCbuild/amd64/python37.dll DESTINATION bin)
|
||||
INSTALL(FILES ${PYTHON_ROOT}/PCbuild/amd64/python37.pdb DESTINATION pdb)
|
||||
ENDIF()
|
||||
|
||||
|
||||
|
||||
@@ -1401,6 +1401,7 @@ bool handled_exec_file(bpy::str filename, bpy::object globals = bpy::object(), b
|
||||
void PythonRunner::initPath()
|
||||
{
|
||||
static QStringList paths = {
|
||||
QCoreApplication::applicationDirPath() + "/pythoncore.zip",
|
||||
QCoreApplication::applicationDirPath() + "/pythoncore",
|
||||
m_MOInfo->pluginDataPath()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user