diff options
author | randomdan <randomdan@localhost> | 2013-12-03 16:11:57 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2013-12-03 16:11:57 +0000 |
commit | bf46bb3a119d3cd5affae62bffc4c7bbb931c686 (patch) | |
tree | f5016b370823099cc004d897c89e338fc93020d7 | |
parent | Allow registration of a standalone component (diff) | |
download | project2-bf46bb3a119d3cd5affae62bffc4c7bbb931c686.tar.bz2 project2-bf46bb3a119d3cd5affae62bffc4c7bbb931c686.tar.xz project2-bf46bb3a119d3cd5affae62bffc4c7bbb931c686.zip |
Assume, don't force, relative paths to scripts (allows absolute root paths)
-rw-r--r-- | project2/xml/xmlScriptParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |