We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
MAIN_SEPARATOR
1 parent bc7a671 commit b8d513cCopy full SHA for b8d513c
1 file changed
src/lib.rs
@@ -16,7 +16,7 @@ mod python;
16
17
use pyo3::{create_exception, exceptions::PyValueError, prelude::*, PyClass};
18
use python::*;
19
-use std::panic::Location;
+use std::{panic::Location, path::MAIN_SEPARATOR};
20
21
create_exception!(
22
rlbot_flatbuffers,
@@ -30,7 +30,7 @@ create_exception!(
30
pub fn flat_err_to_py(err: flatbuffers::InvalidFlatbuffer) -> PyErr {
31
let caller = Location::caller();
32
let err_msg = format!(
33
- "Can't make flatbuffer @ \"rlbot_flatbuffers/{}\":\n {err}",
+ "Can't make flatbuffer @ \"rlbot_flatbuffers{MAIN_SEPARATOR}{}\":\n {err}",
34
caller.file()
35
);
36
InvalidFlatbuffer::new_err(err_msg)
0 commit comments