First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
I have checked that in C:\Program Files (x86)\PTI\PSSE34\PSSPY37 there are psspy and redirect modules. Nevertheless, when I try:
import os, sys syspathPSSE=r'C:\Program Files (x86)\PTI\PSSE34\PSSPY37' sys.path.append(syspathPSSE) ospathPSSE=r'C:\Program Files (x86)\PTI\PSSE34\PSSBIN' os.environ['PATH'] += ';' + ospathPSSE os.environ['PATH'] += ';' + syspathPSSE import psspy, redirect redirect.psse2py()
Both modules are not found
I have checked that in C:\Program Files (x86)\PTI\PSSE34\PSSPY37 there are psspy and redirect modules. Nevertheless, when I try:
import os, sys
syspathPSSE=r'C:\Program sys_path_PSSE=r'C:\Program Files (x86)\PTI\PSSE34\PSSPY37'
sys.path.append(syspathPSSE) sys.path.append(sys_path_PSSE) ospathPSSE=r'C:\Program os_path_PSSE=r'C:\Program Files (x86)\PTI\PSSE34\PSSBIN'
os.environ['PATH'] += ';' + ospathPSSE os_path_PSSE
os.environ['PATH'] += ';' + syspathPSSE sys_path_PSSE
import psspy, redirect
redirect.psse2py()redirect.psse2py()
Both modules are not found