mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-18 16:32:06 +00:00
feat: Python Plugins
This commit is contained in:
@@ -263,6 +263,14 @@ int wmain(int argc, wchar_t **argv)
|
||||
_wsplitpath(path_to_exe, drive, dir, fname, ext);
|
||||
_wmakepath(path_to_exe, drive, dir, nullptr, nullptr);
|
||||
|
||||
wchar_t path_to_python[MAX_PATH + 1] = { 0 };
|
||||
wcscpy(path_to_python, path_to_exe);
|
||||
wcscat(path_to_python, L"python");
|
||||
DWORD python_attrs = GetFileAttributesW(path_to_python);
|
||||
if (python_attrs != INVALID_FILE_ATTRIBUTES && (python_attrs & FILE_ATTRIBUTE_DIRECTORY)) {
|
||||
SetDllDirectoryW(path_to_python);
|
||||
}
|
||||
|
||||
#ifdef SLIC3R_GUI
|
||||
// https://wiki.qt.io/Cross_compiling_Mesa_for_Windows
|
||||
// http://download.qt.io/development_releases/prebuilt/llvmpipe/windows/
|
||||
|
||||
Reference in New Issue
Block a user