PYTHONSTARTUP not honored?

Answered

Hello, I am trying to have the console for any project load the PYTHONSTARTUP script. It is not honoring my global settings (set in both .bashrc and .profile). It also will not honor it if manually set in Build, Exec, Deploy > Console > Python Console > Environment variables.

If I manually add the code to the `Starting script` area it works, however I don't see any way to apply that globally instead of just per project.

Thanks for any help!

2
2 comments

As you can see in the header of python console settings window these settings are applied only for the current project. You can add `starting script` to File| Default Settings| Build, Execution, Deployment| Console| Python console| Starting script and after that all newly created project will follow these settings.

It's true that Python console ignores PYTHONSTARTUP environment variable from console settings. Please vote for the related issue https://youtrack.jetbrains.com/issue/PY-21853 to increase its priority and be notified about updates.


0
Avatar
Permanently deleted user

Ah ha, could not find that default settings for all of them for the life of me, thanks for the help Anna!

0

Please sign in to leave a comment.