diff options
| author | ruki <[email protected]> | 2016-03-18 19:57:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-03-18 19:57:22 +0800 |
| commit | 7ff5704f835df20b79db4f672204df9a562058aa (patch) | |
| tree | 936db6ad6da98ae0f97efb45663e933eb54be5a5 /xmake/core/base/io.lua | |
| parent | 34d77b966b9640673b4a6d23758b3d9f51cb1169 (diff) | |
remove install and package from platform
Diffstat (limited to 'xmake/core/base/io.lua')
| -rw-r--r-- | xmake/core/base/io.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/core/base/io.lua b/xmake/core/base/io.lua index 300599378..9c55b1f2d 100644 --- a/xmake/core/base/io.lua +++ b/xmake/core/base/io.lua @@ -26,6 +26,7 @@ local _file = _file or {} -- load modules local path = require("base/path") +local table = require("base/table") local utils = require("base/utils") -- save original open @@ -255,12 +256,7 @@ function io.open(filepath, mode) end -- init file instance - local file = {} - for k, v in pairs(_file) do - if type(v) == "function" then - file[k] = v - end - end + local file = table.inherit(_file) -- open it local handle, errors = io._open(path.translate(filepath), mode) |
