try to canonicalize to absolute path in current_dir(), use it in setting LoadContext directories (#821)

This commit is contained in:
Mark Thom
2021-02-17 18:49:51 -07:00
parent 2a70ca375c
commit f5ad845d57
2 changed files with 11 additions and 8 deletions

View File

@@ -1606,8 +1606,6 @@ impl Machine {
pub(crate) fn load_context_directory(&mut self) {
if let Some(load_context) = self.load_contexts.last() {
if let Some(directory) = load_context.path.parent() {
// canonicalize returns the absolute path of the directory.
let directory = directory.canonicalize().unwrap();
let directory_str = directory.to_str().unwrap();
let directory_atom =