From ef4fe60273da742248fe9111e9141df51185c204 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Jun 2015 15:08:30 +0800 Subject: open new file and create directory --- xmake/scripts/platform/windows/prober.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmake/scripts/platform') diff --git a/xmake/scripts/platform/windows/prober.lua b/xmake/scripts/platform/windows/prober.lua index 099212179..c8e466b5a 100644 --- a/xmake/scripts/platform/windows/prober.lua +++ b/xmake/scripts/platform/windows/prober.lua @@ -21,6 +21,7 @@ -- -- load modules +local io = require("base/io") local os = require("base/os") local path = require("base/path") local utils = require("base/utils") @@ -151,7 +152,7 @@ function prober._probe_vs_path(configs) -- make the call(vsvars32.bat) file local callpath = tmpdir .. "\\call_vsvars32.bat" - local callfile = io.open(callpath, "w") + local callfile = io.openmk(callpath) assert(callfile) -- make call scripts -- cgit v1.3.1