Commit 9d32b83a authored by Davis King's avatar Davis King

Minor code cleanup

parent 73b54620
...@@ -45,8 +45,7 @@ namespace dlib ...@@ -45,8 +45,7 @@ namespace dlib
// Set the current directory to be the one that contains the // Set the current directory to be the one that contains the
// metadata file. We do this because the file might contain // metadata file. We do this because the file might contain
// file paths which are relative to this folder. // file paths which are relative to this folder.
const std::string parent_dir = get_parent_directory(file(filename)).full_name(); set_current_dir(get_parent_directory(file(filename)));
set_current_dir(parent_dir);
...@@ -121,8 +120,7 @@ namespace dlib ...@@ -121,8 +120,7 @@ namespace dlib
// Set the current directory to be the one that contains the // Set the current directory to be the one that contains the
// metadata file. We do this because the file might contain // metadata file. We do this because the file might contain
// file paths which are relative to this folder. // file paths which are relative to this folder.
const std::string parent_dir = get_parent_directory(file(filename)).full_name(); set_current_dir(get_parent_directory(file(filename)));
set_current_dir(parent_dir);
std::set<std::string> all_parts; std::set<std::string> all_parts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment