link psse34 to python

asked 2016-05-24 12:15:35 -0500

saeed.ahmadian gravatar image

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

edit retag flag offensive 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 gravatar imageTimoHalttunen ( 2016-06-02 05:52:16 -0500 )edit