More windows path handling fixes
This commit is contained in:
+1
-1
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user