First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Nov 7 '15

jconto gravatar image

From v.34 PSSPY is not locate at the same path as PSSe, but within its own folder. Use the following code when developing for both v.33 and v.34 (psseversion and pssepath are defined above these code, according to your installation):

if PSSEVERSION==34:
   import psse34               # it sets new path for psspy
else:
   sys.path.append(PSSEPATH])

import psspy

click to hide/show revision 2
No.2 Revision

From Starting from v.34 PSSPY is not locate located at the same path as PSSe, but within its own folder. Use the following code when developing for both v.33 and v.34 (psseversion and pssepath are defined above these code, according to your installation):

if PSSEVERSION==34:
   import psse34               # it sets new path for psspy
else:
   sys.path.append(PSSEPATH])
sys.path.append(PSSEPATH]
import psspy

import psspy