From bf46bb3a119d3cd5affae62bffc4c7bbb931c686 Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 3 Dec 2013 16:11:57 +0000 Subject: Assume, don't force, relative paths to scripts (allows absolute root paths) --- project2/xml/xmlScriptParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project2/xml/xmlScriptParser.cpp b/project2/xml/xmlScriptParser.cpp index 50dba96..3bb8b4a 100644 --- a/project2/xml/xmlScriptParser.cpp +++ b/project2/xml/xmlScriptParser.cpp @@ -94,7 +94,7 @@ XmlScriptParser::isCurrent() const class XmlScriptReaderLoader : public ScriptReaderLoader { public: ScriptReaderPtr resolveScript(const std::string & group, const std::string & name) const { - boost::filesystem::path script(boost::filesystem::current_path() / group / (name + ".xml")); + boost::filesystem::path script(boost::filesystem::path(group) / (name + ".xml")); if (boost::filesystem::is_regular_file(script)) { return new XmlScriptParser(script); } -- cgit v1.2.3