![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				still problem with data from .exe file
			 
			
			
			Hi  
		
		
		
		
		
		
		
		
	
	I'm still having problems with data being output from a .exe file - I read the post as recommended but it was using exactly the same code as I've tried. This is the code I'm using - it works fine in the developmental stage but once the .exe is published, it fails to produce a file. Code: 
	filename = 'adapt_.txt' + str(subject)
def getPublishedPath(filename):
	#filename = 'adapt_.txt' + str(subject)
	publishPath = viz.getOption('Y:\backup\Vizard30\resources\road\_.txt','')
	if publishPath:
		return '/'.join([publishPath,filename])
	return filename
file = open(getPublishedPath(filename), 'w')
 | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Have a look at the Publishing as an EXE page in the docs. It shows how to do exactly what you want. Here is some sample code: 
		
		
		
		
		
		
		
		
	
	Code: 
	f = open( viz.res.getPublishedPath('output.txt') , 'w' )
 | 
![]()  | 
	
	
| Thread Tools | |
| Display Modes | Rate This Thread | 
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| writing joystick position to a data file | Saz | Vizard | 3 | 12-17-2008 06:18 AM | 
| Problem generating exe file | Anfo | Vizard | 1 | 11-17-2008 05:21 PM | 
| File Management | Uttama_vizard | Vizard | 2 | 07-01-2008 10:44 AM | 
| Flagging the Data | Elittdogg | Vizard | 5 | 04-11-2008 12:40 PM | 
| 5DT Data Glove 5 Ultra Problem | bjgold | Vizard | 1 | 08-08-2006 05:08 PM |