From e18da510b7de3502086e477fd8469e2f1676428e Mon Sep 17 00:00:00 2001 From: Karsten Bock Date: Sat, 3 Oct 2026 19:53:59 +0200 Subject: [PATCH] Ensure that the script root path is stored without backslashes --- rust-script/src/interface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-script/src/interface.rs b/rust-script/src/interface.rs index e75e0de..fe67043 100644 --- a/rust-script/src/interface.rs +++ b/rust-script/src/interface.rs @@ -409,7 +409,7 @@ macro_rules! define_script_root { } pub const __GODOT_RUST_SCRIPT_SRC_ROOT: &str = $crate::private_export::concat!( - env!("CARGO_MANIFEST_DIR"), + $crate::private_export::replace!(env!("CARGO_MANIFEST_DIR"), "\\", "/"), "/src", $crate::private_export::replace!( $crate::private_export::unwrap!($crate::private_export::strip_prefix!(