简体   繁体   中英

Pycharm console startup script not working

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?

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

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM