link psse34 to python

i want to link python to pssexplore34 how can i do it? when i used below code i got this msg "ImportError: DLL load failed: The specified module could not be found.". my code is :

import sys import os

PSSE_PATH= r'C:\Program Files\PTI\PSSEXplore34\PSSPY27'

sys.path.append(PSSEPATH) os.environ['PATH']+=';'+ PSSEPATH

import psspy

saeed.ahmadian's avatar
1
saeed.ahmadian
asked 2016-05-24 12:15:35 -0500
edit flag offensive 0 remove flag close merge delete

Comments

http://www.whit.com.au/blog/2011/07/run-psse-from-python-and-not-other-way/ In this blog post the added folder is PSSBIN. However, this is for the full version, so I'm not 100% confident that PSSEXplore supports Python driven usage of PSSE.

TimoHalttunen's avatar TimoHalttunen (2016-06-02 05:52:16 -0500) edit
add a comment see more comments