diff options
author | Connor Brewster <connor.brewster@eagles.oc.edu> | 2016-07-01 15:33:32 -0600 |
---|---|---|
committer | Connor Brewster <connor.brewster@eagles.oc.edu> | 2016-07-01 15:33:32 -0600 |
commit | 292a5e90e0c2079f982b54bbe8bfc941a5192986 (patch) | |
tree | 10681880063a6d5da8fb5e9d7686df129d86cc47 | |
parent | f2d798232ffcf5442c7ee7150ddd153fe4eeb06a (diff) | |
download | servo-292a5e90e0c2079f982b54bbe8bfc941a5192986.tar.gz servo-292a5e90e0c2079f982b54bbe8bfc941a5192986.zip |
Check for Resources on case sensitive fs.
-rw-r--r-- | components/util/resource_files.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/util/resource_files.rs b/components/util/resource_files.rs index d580b6f8a1e..9c2eab83df6 100644 --- a/components/util/resource_files.rs +++ b/components/util/resource_files.rs @@ -46,6 +46,12 @@ pub fn resources_dir_path() -> PathBuf { break; } 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()); path |