diff --git a/DSView/pv/appcontrol.cpp b/DSView/pv/appcontrol.cpp index 15c0e52d..23fd92d0 100644 --- a/DSView/pv/appcontrol.cpp +++ b/DSView/pv/appcontrol.cpp @@ -77,19 +77,22 @@ bool AppControl::Init() QString resdir = GetResourceDir(); sr_set_firmware_resource_dir(resdir.toUtf8().data()); + + #ifdef _WIN32 QString pythonHome = GetAppDataDir() + "/Python"; QDir pydir; if (pydir.exists(pythonHome)){ - srd_set_python_home(pythonHome.toUtf8().data()); + const wchar_t *pyhome = reinterpret_cast(pythonHome.utf16()); + srd_set_python_home(pyhome); }else{ qDebug()<<"python home directory not exists,"< - + EnvironmentId @@ -93,7 +93,7 @@ QtProjectManager.QMakeBuildStep true - false + true false false