Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

psspy.runrspnsfile(Idev_file)

Hello folks,

I'm having a hard time to run this code to run a multiple Idev files from a python code. When I run this function for a single idev file, for example: psspy.runrspnsfile('example.idv'), it works great! But what I'm trying to do is to make a loop that which iteration, it reads from a given txt file (with a list of idev file names) and executes this function:

f = open(giventextfile, 'r') # This file contains a list of idev file names. while 1: varname = f.readline() psspy.runrspnsfile(varname) ... break f.close()

So even though the path for each idev file is correct I'm getting this error below:

File not found. "blablabla.idv" (OPENIDV/OPNSEA)