[wesnoth-commits] [wesnoth/wesnoth] 8a33ad: fix #4256 wesnoth.require with relative paths
gfgtdf
noreply at github.com
Sat Aug 24 16:52:16 UTC 2019
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 8a33ad0bf1f3c152f7da6bd8c352cd2617d285c3
https://github.com/wesnoth/wesnoth/commit/8a33ad0bf1f3c152f7da6bd8c352cd2617d285c3
Author: gfgtdf <daniel.gfgtdf at gmail.com>
Date: 2019-08-24 (Sat, 24 Aug 2019)
Changed paths:
M data/lua/package.lua
M src/scripting/lua_fileops.cpp
M src/scripting/lua_fileops.hpp
M src/scripting/lua_kernel_base.cpp
Log Message:
-----------
fix #4256 wesnoth.require with relative paths
now wesnoth.require is able to detect when the same file is
required two times using different names (like a/../a/b.lua
a/b.lua) and will only execute it once.
for this a new function wesnoth.canonical_path was added
More information about the Commits
mailing list