We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1be89d commit bf5b49dCopy full SHA for bf5b49d
crates/bevy_asset/src/io/file_asset_io.rs
@@ -64,7 +64,7 @@ impl FileAssetIo {
64
/// instead. It's set by cargo when running with `cargo run`.
65
pub fn get_base_path() -> PathBuf {
66
if let Ok(manifest_dir) = env::var("CARGO_MANIFEST_DIR") {
67
- PathBuf::from(manifest_dir)
+ fs::canonicalize(manifest_dir).unwrap()
68
} else {
69
env::current_exe()
70
.map(|path| {
0 commit comments