![]() |
|
|
|
#1
|
|||
|
|||
|
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')
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |