![]() |
|
#2
|
|||
|
|||
|
Is the input file in the same directory as the EXE? If so, you can use the viz.publish.path option to get the path to the EXE, and prepend it to the filename. Example:
Code:
filename = 'input.txt'
#Prepend publish path to filename
if int(viz.getOption('viz.publish',0)):
filename = '/'.join([viz.getOption('viz.publish.path'),filename])
f = open(filename,'r')
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| displayhtml did not work after published as EXE | felixchc | Vizard | 5 | 10-18-2006 02:33 AM |
| csv reading | kgarr | Vizard | 1 | 02-27-2006 01:02 PM |
| A simple Plug_in for reading data from serial port | sled | Plug-in development | 0 | 08-12-2003 10:52 AM |