Use PBD::canonical_path instead of ::realpath
This is a previous change that seems to have been lost in master -> windows merge
This commit is contained in:
parent
18a59dd7fa
commit
c3d2b1ea18
@ -136,14 +136,7 @@ Session::pre_engine_init (string fullpath)
|
|||||||
|
|
||||||
/* discover canonical fullpath */
|
/* discover canonical fullpath */
|
||||||
|
|
||||||
char buf[PATH_MAX+1];
|
_path = canonical_path(fullpath);
|
||||||
if (!realpath (fullpath.c_str(), buf) && (errno != ENOENT)) {
|
|
||||||
error << string_compose(_("Could not use path %1 (%2)"), buf, strerror(errno)) << endmsg;
|
|
||||||
destroy ();
|
|
||||||
throw failed_constructor();
|
|
||||||
}
|
|
||||||
|
|
||||||
_path = string(buf);
|
|
||||||
|
|
||||||
/* we require _path to end with a dir separator */
|
/* we require _path to end with a dir separator */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user