mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Check for Resources on case sensitive fs.
This commit is contained in:
parent
f2d798232f
commit
292a5e90e0
1 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,12 @@ pub fn resources_dir_path() -> PathBuf {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
path.pop();
|
path.pop();
|
||||||
|
// Check for Resources on mac when using a case sensitive filesystem.
|
||||||
|
path.push("Resources");
|
||||||
|
if path.is_dir() {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
path.pop();
|
||||||
}
|
}
|
||||||
*dir = Some(path.to_str().unwrap().to_owned());
|
*dir = Some(path.to_str().unwrap().to_owned());
|
||||||
path
|
path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue