Skip to content

Commit eee1e81

Browse files
committed
More windows fixes
1 parent 4f71f1d commit eee1e81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/control/script_reader.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@
3131
#include <ur_client_library/exceptions.h>
3232
#include <ur_client_library/control/script_reader.h>
3333
#include <ur_client_library/helpers.h>
34+
#include <ur_client_library/log.h>
3435

36+
#include <stack>
3537
#include <fstream>
3638
#include <regex>
37-
#include "ur_client_library/log.h"
3839

3940
namespace urcl
4041
{
@@ -174,7 +175,7 @@ void ScriptReader::replaceIncludes(std::string& script, const DataDict& data)
174175
while (std::regex_search(script, match, include_pattern))
175176
{
176177
std::filesystem::path file_path(match[1].str());
177-
std::string file_content = readScriptFile(script_path_.parent_path() / file_path.string(), data);
178+
std::string file_content = readScriptFile((script_path_.parent_path() / file_path.string()).string(), data);
178179
script.replace(match.position(0), match.length(0), file_content);
179180
}
180181
}

0 commit comments

Comments
 (0)