is this code working? it is for me, but just want know if working others.
Also, is other way to get this?
1
2
3
4
5
6
7
2
3
4
5
6
7
for path in string.gmatch(package.path, "[^;]+") do 	local to = string.find(path, "[\\|/]lua[\\|/]%?%.lua$") 	if to then 		cs2dpath = string.sub(path, 1, to - 1) 		break 	end end