WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-19-2008, 06:51 AM
Andrey Andrey is offline
Member
 
Join Date: Apr 2007
Posts: 21
Exe

Hi,
The simple code to save txt file is below. It works in Vizard, but if I publish it as EXE, it does not save the file although shows ‘Saved!’ message. I use 3.00.1903 Vizard version. All depending files were added. Console window does not show errors.

Thank you,
Andrey
=================================================
import viz

fileName = viz.input('Enter saveFile name','')
output_file = open(fileName+'.txt','a')
output_file.write('record')
output_file.write('\n')
viz.message('Saved!')
output_file.close()
Reply With Quote
  #2  
Old 05-19-2008, 02:23 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The following forum post should answer your question:

http://www.worldviz.com/forum/showthread.php?t=1416

If you use the latest version of Vizard, you can use the viz.res.getPublishedPath command instead.
Reply With Quote
  #3  
Old 05-21-2008, 01:30 PM
Andrey Andrey is offline
Member
 
Join Date: Apr 2007
Posts: 21
Thanks, it works. One more "exe" problem: I don't see vizinfo panel while running .exe
Reply With Quote
  #4  
Old 05-21-2008, 06:15 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
vizinfo should work fine. Are you importing the vizinfo module when your script initializes or do you import it dynamically at runtime?
Reply With Quote
  #5  
Old 05-23-2008, 07:13 AM
Andrey Andrey is offline
Member
 
Join Date: Apr 2007
Posts: 21
vizinfo module is imported when the script initializes.
Reply With Quote
  #6  
Old 05-23-2008, 06:16 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Does the following sample script work when you publish it as an exe:
Code:
import viz
viz.go()

import vizinfo
vizinfo.add('test')
If so, can you post an example script that causes vizinfo not to show up in an exe?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -7. The time now is 07:36 AM.


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