Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12353
Modified Files:
import.py
Log Message:
Fixed text import
Index: import.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/import.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** import.py 8 Aug 2004 17:55:31 -0000 1.9
--- import.py 18 Sep 2004 15:21:02 -0000 1.10
***************
*** 143,155 ****
line = line.replace( "\n", "" )
! ( baseid, id, x, y, z, map, color ) = line.split( ' ' )
- baseid = baseid
id = hex2dec( id )
color = hex2dec( color )
x = int( x )
y = int( y )
z = int( z )
- map = int( map )
step2 = wolfpack.tickcount()
--- 143,154 ----
line = line.replace( "\n", "" )
! ( id, x, y, z, color ) = line.split( ' ' )
id = hex2dec( id )
+ baseid = '%x' % id
color = hex2dec( color )
x = int( x )
y = int( y )
z = int( z )
step2 = wolfpack.tickcount()
|