Use lfs.currentdir() to get default root_dir as an absolute path

This commit is contained in:
Paulo Matias
2013-08-15 19:50:33 -03:00
parent 48d6020930
commit 04ebaf0964

View File

@@ -7,7 +7,7 @@ FileManager = InputContainer:extend{
title = _("FileManager"),
width = Screen:getWidth(),
height = Screen:getHeight(),
root_path = './',
root_path = lfs.currentdir(),
-- our own size
dimen = Geom:new{ w = 400, h = 600 },
onExit = function() end,