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. |
The documentation for Publishing as an EXE describes how to accomplish this. Specifically, you need to use the viz.res.getPublishedPath() command.
|
Quote:
|
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' ) |
All times are GMT -7. The time now is 11:46 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC