![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				problems with output to a text file within executable
			 
			
			
			Hi, 
		
		
		
		
		
		
		
		
	
	I'm having trouble getting my data when my program is published as an executable. When developing the code this: Code: 
	#Get path to publish EXE
path = viz.getOption('Y:\backup\Vizard30\resources\road\speed_.txt','.')+'/'
#Open file in path
file = open( 'adapt' + str(subject),'w' )
Previously I've gathered data using this: Code: 
	directory = 'Z:\Vizard30\Dataoutput\driving\ ' subjectd = 'speed_.txt' + str(subject) filename = directory+subjectd file = open(filename, 'w') I've tried this: Code: 
	def getPublishedPath(filename):
	filename = 'adapt_.txt' + str(subject)
	publishPath = viz.getOption('Y:\backup\Vizard30\resources\road\','')
	if publishPath:
		return '/'.join([publishPath,filename])
	return filename
file = open(getPublishedPath(filename), 'w')
Any ideas on what I should be doing? Cheers!  | 
| Thread Tools | |
| Display Modes | Rate This Thread | 
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Problems loading WRL file | DrunkenBrit | Vizard | 2 | 01-29-2009 01:58 AM | 
| executable file with avatars incorrectly displayed | aa-chris | Vizard | 2 | 11-03-2008 11:28 AM | 
| How to input several model files and then save one output file | mspusch | Vizard | 1 | 07-15-2008 11:30 PM | 
| Writing text files with executable | adimov | Vizard | 1 | 03-21-2008 04:21 PM | 
| text output | jaclyn.bill | Vizard | 2 | 10-24-2007 07:37 AM |