Changeset 810
- Timestamp:
- 01/16/10 22:38:42 (8 weeks ago)
- Files:
-
- 1 modified
-
trunk/lugre/lua/lib.util.lua (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lugre/lua/lib.util.lua
r809 r810 85 85 function GetHomePath () -- returns /home/username without trailing slash 86 86 if (WIN32) then 87 local file = io.popen("echo % USERPROFILE%")87 local file = io.popen("echo %appdata%") 88 88 if (not file) then return end 89 89 for line in file:lines() do file:close() return string.sub(line,1,-1) end
