Ask Your Question
0

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

asked 2024-07-23 01:30:27 -0500

Buffering gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2024-07-25 11:01:08 -0500

CPReddy gravatar image

updated 2024-07-25 11:02:21 -0500

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2024-07-23 01:30:27 -0500

Seen: 203 times

Last updated: Jul 25