WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-21-2008, 04:21 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You need to prepend the publish EXE path to the filename, otherwise the file will be saved to the current directory, which is in a temp folder. Here is some code to get the full path to a file in a published EXE:
Code:
def getPublishedPath(filename):
	publishPath = viz.getOption('viz.publish.path','')
	if publishPath:
		return '/'.join([publishPath,filename])
	return filename

file = open(getPublishedPath('response.txt'), 'w')
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
text output jaclyn.bill Vizard 2 10-24-2007 07:37 AM
Error when playing wav files...? vjonshih Vizard 1 05-23-2005 01:21 PM
loading large wav files in vizard tommahhh Vizard 1 05-16-2005 04:23 PM
3d Text with Transparent Borders vjosh Vizard 3 12-01-2004 11:50 AM
Including Files that Include Other Files vjosh Vizard 1 09-21-2004 05:44 PM


All times are GMT -7. The time now is 09:08 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC