summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-12-03 16:11:57 +0000
committerrandomdan <randomdan@localhost>2013-12-03 16:11:57 +0000
commit7e28c36757403f0c6a3b1af80f22722b1ee7ade1 (patch)
treef5016b370823099cc004d897c89e338fc93020d7
parentAllow registration of a standalone component (diff)
downloadproject2-7e28c36757403f0c6a3b1af80f22722b1ee7ade1.tar.bz2
project2-7e28c36757403f0c6a3b1af80f22722b1ee7ade1.tar.xz
project2-7e28c36757403f0c6a3b1af80f22722b1ee7ade1.zip
Assume, don't force, relative paths to scripts (allows absolute root paths)
-rw-r--r--project2/xml/xmlScriptParser.cpp2
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);
}