Pycharm console startup script not working

寵の児 提交于 2021-02-07 09:58:04

问题


I'm using PyCharm Community Edition 4.0.4 on a Macbook running Mavericks. Under Preferences > Build, Execution, Deployment > Console > Python Console there is a text area to input a starting script. Initially it contains import sys; followed by a print statement that prints the file path of the Python framework as well as the file path of the current file. However, when I alter or delete the print statements in this section, and then hit apply and OK, nothing changes in my python console output. I have tried restarting Pycharm and then running a hello world program, but the initial starting script output is still there.

I am just running a simple hello world program, with one package and two files (the other being the default __init__.py). How can I alter the starting script correctly?


回答1:


You want to change the startup scripts then. Change called "Starting Script":

enter image description here



来源:https://stackoverflow.com/questions/28162279/pycharm-console-startup-script-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!