I tried adding the PYTHONSTARTUP
environment variable:
I also tried a custom starting script:
But even more surprisingly - this also did not work (the npa
alias was not recognized):
Out of a bit of desperation I even tried adding to the interpreter options
:
That did nothing: (what actually is Interpreter options
supposed to do .. ? )
Finally I also looked at the SDK settings for python - and also nothing available there:
So then how do we set the PYTHONSTARTUP
script?
It's looking pretty unlikely that Intellij has any way to do this. Instead I have added the following to the beginning of the script
execfile('/Users/boescst/.pythonstartup')
That is for python2
. For python3
it is bit different - along the lines of
exec(compile(source=open('/Users/juggernaut/.pythonrc.py')
.read(), filename=".pythonrc.py", mode="exec"))