![]() |
|
|
|
#1
|
|||
|
|||
|
getting data out of an exe
Hello. I want to publish a script as an exe and it writes to a file. I want to have axcess to the data in that file after the exe is closed (ie I want it saved in the same folder the exe is stored).
How can I do this? Right now nothing comes out of the exe. |
|
#2
|
|||
|
|||
|
The documentation for Publishing as an EXE describes how to accomplish this. Specifically, you need to use the viz.res.getPublishedPath() command.
|
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
Of course it doesn't, it's up to you to create the file using the new path and write to it:
Code:
f = open( viz.res.getPublishedPath('output.txt') , 'w' )
f.write('bla bla bla')
f.close()
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using 5DT plug-in with the data coming through network... | mcicek | Vizard | 1 | 05-18-2009 05:17 PM |
| writing joystick position to a data file | Saz | Vizard | 3 | 12-17-2008 05:18 AM |
| Flagging the Data | Elittdogg | Vizard | 5 | 04-11-2008 11:40 AM |
| data glove navigation | arielasso | Vizard | 6 | 10-24-2007 02:15 PM |
| tracking using quaternarion data | jfreeman | Vizard | 2 | 06-01-2005 08:48 AM |