First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

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

asked Jul 23 '4

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

1 answer

Sort by » oldest newest most voted
0

answered Jul 25 '4

CPReddy gravatar image

updated Jul 25 '4

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

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Jul 23 '4

Seen: 224 times

Last updated: Jul 25 '24