We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1be89d commit a5c1a20Copy full SHA for a5c1a20
crates/bevy_asset/src/io/file_asset_io.rs
@@ -64,7 +64,8 @@ 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)
68
+ .unwrap_or_else(|_| PathBuf::from(manifest_dir))
69
} else {
70
env::current_exe()
71
.map(|path| {
0 commit comments