| Server IP : 82.208.35.60 / Your IP : 216.73.216.168 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/graphics/appleseed/files/ |
Upload File : |
--- src/appleseed.studio/mainwindow/mainwindow.cpp.orig 2019-08-31 15:49:01 UTC
+++ src/appleseed.studio/mainwindow/mainwindow.cpp
@@ -27,6 +27,9 @@
// THE SOFTWARE.
//
+// XXX: must be included before Qt headers because of `slot' redefine
+#include "mainwindow/pythonconsole/pythonconsolewidget.h"
+
// Interface header.
#include "mainwindow.h"
@@ -39,7 +42,6 @@
#include "mainwindow/minimizebutton.h"
#include "mainwindow/project/attributeeditor.h"
#include "mainwindow/project/projectexplorer.h"
-#include "mainwindow/pythonconsole/pythonconsolewidget.h"
#include "mainwindow/rendering/lightpathstab.h"
#include "mainwindow/rendering/materialdrophandler.h"
#include "mainwindow/rendering/renderwidget.h"
@@ -684,7 +686,7 @@ void MainWindow::build_log_panel()
void MainWindow::build_python_console_panel()
{
- char* python_home = Py_GetPythonHome();
+ char* python_home = Py_EncodeLocale(Py_GetPythonHome(), nullptr);
if (python_home == nullptr)
RENDERER_LOG_INFO("Python home not set.");
else RENDERER_LOG_INFO("Python home set to %s.", python_home);