Python API unable to load dsusr.dll?
Hello all, I'm getting an intermittent bug that I can't explain. I have a python script that updates a snapshot, then loads all the adds all model library dll files in a folder and then runs a flatrun.
For some cases when I run the add model library code:
import psspy
workdir = os.getcwd()
print("Current Dir: {}".format(workdir))
liblist = []
for files in os.listdir(workdir):
if files[-4:].lower() == '.dll':
liblist.append(files)
for library in liblist:
ierr = psspy.addmodellibrary(workdir + "\\" + library)
I get the following error:
Current Dir: C:\Users\sjudd\Documents_CodeDev\Model Acceptance Tool\MATLocalMASv33v34200928\PreProj Messages for api ADDMODELLIBRARY Library not found (004183) "C:\Users\sjudd\Documents_CodeDev\Model Acceptance Tool\MATLocalMASv33v34200928\PreProj\dsusr.dll"
The code loads in all other dlls without issue and for some cases it even loads dsusr.dll without issue.
I've run the stability package within the PSSE GUI and don't have issues loading dsusr.dll for the stability package in question.
Is there some pathing issue that causes it to not always recognize dsusr.dll?