View Single Post
  #2  
Old 09-23-2005, 08:59 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Backslash characters are a special case in strings. For instance, when you want to instert a newline or a tab in a string you would use \n and \t, respectively. If you want to insert an actual backslash character you would have to use to backslashes, \\.

Alternatively you could use forward slashes or mark the string as raw by placing an r character before the string:
Code:
viz.add(r'c:\code&game\corevrml\mywhirlpool_2.wrl')
Reply With Quote