I do most of my development work in PyCharm and would like to do the same with JModelica. I understand that the setenv.bat
needs to be run before the interpreter is opened, so that the interpreter knows where to locate the JModelica Python Libraries such as pymodelica
. See this related post. But how can this be achieved within PyCharm?
Asked
Active
Viewed 220 times
0

alkey
- 986
- 4
- 16
- 33
1 Answers
0
you can create a startPyCharm.bat e.g.
call C:\JModelica.org-SDK-1.12\setenv.bat
start C:\....\pycharm.exe
(similarly to C:\JModelica.org-SDK-1.12\Python.bat)

Vital
- 41
- 3
-
This worked. So does this keep setenv.bat opened in the background so that whenever a new interpreter is opened in PyCharm it contains the same environment? – alkey Nov 14 '18 at 11:33