First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version | asked 2015-02-13 11:57:16 -0600 Anonymous |
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)