First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Following the reply above from Jconto (who gets credit for this!), for those using PSSEXplore34 you need to look for "pssexplore34.py" (not psse34.py) and it must be in the same folder as "pssexcel.pyc" and "psspy.pyc" (can be in folder "PSSPY27" or "PSSPY34"). I amended the code from Jconto to reflect that and also some print phrases so you can check the code is running.
import os, sys
DIRECTORY_PATH =r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27' #=psspy folder
sys.path.append(DIRECTORY_PATH)
import pssexplore34
print("Pssexplore initiated")
import excelpy
print("Excelpy imported sucessfully")
2 | No.2 Revision |
Following the reply above below from Jconto (who gets credit for this!), for those using PSSEXplore34 you need to look for "pssexplore34.py" (not psse34.py) and it must be in the same folder as "pssexcel.pyc" and "psspy.pyc" (can be in folder "PSSPY27" or "PSSPY34"). I amended the code from Jconto to reflect that and also some print phrases so you can check the code is running.
import os, sys
DIRECTORY_PATH =r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27' #=psspy folder
sys.path.append(DIRECTORY_PATH)
import pssexplore34
print("Pssexplore initiated")
import excelpy
print("Excelpy imported sucessfully")