#define PATH_C
#include "support/path.h"
+#include "support/filename.h"
#include "support/lyxlib.h"
if (!path.empty()) {
pushedDir_ = getcwd();
- if (pushedDir_.empty() || chdir(path)) {
+ if (pushedDir_.empty() || chdir(FileName(path))) {
/* FIXME: throw */
}
} else {
return 0;
}
- if (chdir(pushedDir_)) {
+ if (chdir(FileName(pushedDir_))) {
// should throw an exception
// throw DirChangeError();
}