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')