|
|
@ -126,7 +126,7 @@ function core.init() |
|
|
|
|
|
|
|
|
|
|
|
-- write project dir to log file |
|
|
|
-- write project dir to log file |
|
|
|
-- create userdir first |
|
|
|
-- create userdir first |
|
|
|
system.exec(string.format("mkdir -p %q", USERDIR)) |
|
|
|
os.execute(string.format("mkdir -p %q", USERDIR)) |
|
|
|
local d = io.open(USERDIR .. '/last_dir', "w") |
|
|
|
local d = io.open(USERDIR .. '/last_dir', "w") |
|
|
|
if not d then error("Error creating user file\n") end |
|
|
|
if not d then error("Error creating user file\n") end |
|
|
|
d:write(tostring(system.absolute_path(project_dir))) |
|
|
|
d:write(tostring(system.absolute_path(project_dir))) |
|
|
|