More windows path handling fixes

This commit is contained in:
luboslenco
2025-11-21 18:44:05 +01:00
parent 8af2e7d325
commit 641aaaf90c
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1305,7 +1305,7 @@ i32 iron_sys_command(string_t *cmd) {
wchar_t comspec[MAX_PATH]; wchar_t comspec[MAX_PATH];
GetEnvironmentVariableW(L"ComSpec", comspec, MAX_PATH); GetEnvironmentVariableW(L"ComSpec", comspec, MAX_PATH);
wchar_t cmdline[2048]; wchar_t cmdline[2048];
swprintf(cmdline, 2048, L"\"%s\" /c %s", comspec, wstr); swprintf(cmdline, 2048, L"\"%s\" /c \"%s\"", comspec, wstr);
STARTUPINFO si; STARTUPINFO si;
memset(&si, 0, sizeof(si)); memset(&si, 0, sizeof(si));
si.cb = sizeof(si); si.cb = sizeof(si);
+4
View File
@@ -43,7 +43,11 @@ import bpy;\
bpy.ops.wm.obj_export(filepath='" + bpy.ops.wm.obj_export(filepath='" +
bpy_folder + string_replace_all(save, "\\", "/") + "',export_triangulated_mesh=True,export_materials=False,check_existing=False)"; bpy_folder + string_replace_all(save, "\\", "/") + "',export_triangulated_mesh=True,export_materials=False,check_existing=False)";
/// if arm_windows
let bl: string = "\"" + string_replace_all(config_raw.blender, "/", "\\") + "\"";
/// else
let bl: string = string_replace_all(config_raw.blender, " ", "\\ "); let bl: string = string_replace_all(config_raw.blender, " ", "\\ ");
/// end
iron_sys_command(bl + " \"" + path + "\" -b --python-expr \"" + py + "\""); iron_sys_command(bl + " \"" + path + "\" -b --python-expr \"" + py + "\"");
import_obj_run(save, replace_existing); import_obj_run(save, replace_existing);
} }