0

command line switch in PSSE 34.7, for changing the embedded interpreter to work with python 3.7?

It says in the manual (page 1066) that there's a command line switch possible to change the embedded python interpreter (from psse version 33 and beyond). I assume this is referring to changing between the 3 versions of python files that are installed with psse 34.7 (python versions 2.7, 3.4, 3.7). I can't find any explanation or sample code to show how to do the switch. Has anyone done this and provide instructions?

The objective is to use python 3.7.9 with psse 34.7, without uninstalling python 2.7.x. At least in the GUI (I'll worry about using it for the external interpreter later). Any help appreciated

Buffering's avatar
1
Buffering
asked 2024-07-23 01:30:27 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

While importing PSSE V34 into python2.7 :

PYTHONPATH1=r'C:\Program Files (x86)\PTI\PSSE34\PSSPY27' PYTHONPATH2=r'C:\Program Files (x86)\PTI\PSSE34\PSSBIN' sys.path.append(PYTHONPATH1) sys.path.append(PYTHONPATH2) os.environ['PATH']+=';'+PYTHONPATH1 os.environ['PATH']+=';'+PYTHONPATH2

While importing PSSE V34 into python3.7 :

PYTHONPATH1=r'C:\Program Files (x86)\PTI\PSSE34\PSSPY37' PYTHONPATH2=r'C:\Program Files (x86)\PTI\PSSE34\PSSBIN' sys.path.append(PYTHONPATH1) sys.path.append(PYTHONPATH2) os.environ['PATH']+=';'+PYTHONPATH1 os.environ['PATH']+=';'+PYTHONPATH2

CPReddy's avatar
1
CPReddy
answered 2024-07-25 11:01:08 -0500, updated 2024-07-25 11:02:21 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer