Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ppspy and redirect import fail

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

click to hide/show revision 2
No.2 Revision

ppspy and redirect import fail

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