Ask Your Question

Revision history [back]

click to hide/show revision 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")

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")