Commits

Christophe Bernard committed 4b0f7d1

android project generation fix for linux

Comments (0)

Files changed (2)

src/actions/android/android.lua

 		if final_path:sub( 2,2 ) == ":" then -- windows style file path
 			return final_path:sub( 4 ) -- return what is after C:\
 		else
-			return path -- don't handle lunix for now
+			return path
 		end
 	end
 	
         
         if os.is( "windows" ) then
 		    drive = path:sub( 1,2 )
+	else
+		drive = "/"
         end
 
 		return drive

src/base/tree.lua

 
 	function tree.add(tr, p, onaddfunc)
 		-- Special case "." refers to the current node
-		if p == "." then
+		if p == "." or p == "/" then
 			return tr
 		end