Undo current_dir -> CARGO_MANIFEST_DIR move

This commit is contained in:
Oliver Schneider 2018-03-27 13:00:02 +02:00
parent 96d5af36f8
commit 9b10c4be8c
No known key found for this signature in database
GPG Key ID: 1D5CB4FC597C3004

View File

@ -115,8 +115,8 @@ pub fn main() {
})
.collect();
let current_dir = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR")
.expect("CARGO_MANIFEST_DIR not set"))
let current_dir = std::env::current_dir()
.expect("CARGO_MANIFEST_DIR not set")
.canonicalize()
.expect("manifest directory cannot be canonicalized");