summarylogtreecommitdiffstats
path: root/tests.patch
blob: 05c1989bc9c7440dd9c3f4f086fb32ca7e3552d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/test/script_machine/script_world.cc
+++ b/test/script_machine/script_world.cc
@@ -68,7 +68,7 @@
 ScriptWorld::~ScriptWorld() { lua_close(L); }
 
 void ScriptWorld::LoadToplevelFile(const std::string& lua_file) {
-  script_dir_ = fs::path(lua_file).branch_path();
+  script_dir_ = fs::path(lua_file).parent_path();
 
   if (luaL_dofile(L, lua_file.c_str())) {
     ostringstream oss;