- Temporarily revert 20639 until a better fix is found. Thanks to Gé.
[reactos.git] / reactos / tools / rbuild / module.cpp
index a44be3b..69d577f 100644 (file)
@@ -996,6 +996,19 @@ Module::GetPathWithPrefix ( const string& prefix ) const
        return path + cSep + prefix + GetTargetName ();
 }
 
+string
+Module::GetPathToBaseDir () const
+{
+       string temp_path = path;
+       string result = "..\\";
+       while(temp_path.find ('\\') != string::npos)
+       {
+               temp_path.erase (0, temp_path.find('\\')+1);
+               result += "..\\";
+       }
+       return result;
+}
+
 string
 Module::GetInvocationTarget ( const int index ) const
 {