3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
13 // Needed to prevent the definition of the unnamed_Path macro in the header file.
16 #include "support/path.h"
17 #include "support/filename.h"
18 #include "support/lyxlib.h"
27 Path::Path(string const & path)
31 pushedDir_ = getcwd();
33 if (pushedDir_.empty() || chdir(FileName(path))) {
51 // should throw an exception
52 // throw logical_error();
56 if (chdir(pushedDir_)) {
57 // should throw an exception
58 // throw DirChangeError();
65 } // namespace support