Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm stills shows the old name after renaming a .py file. How to fix this?

Tags:

python

pycharm

I am using PyCharm Community Edition 2017.1.2. I find that after renaming a file, if I run the current file. Pycharm still shows the original name.

See picture here

The original file name is temp.py, and later I change its name to read_class_scores.py. When I want to run it by right click of the mouse, pycharm still shows the name temp, not the new name.

I tried to delete the .idea folder under my project and restart Pycharm. But that has no effect. Do you know how to fix this?

like image 889
jdhao Avatar asked Oct 19 '25 04:10

jdhao


1 Answers

What you seeing is likely the Run Configuration not the filename. You will need to edit the configuration:

enter image description here

Check it out (here)

like image 169
Stephen Rauch Avatar answered Oct 21 '25 16:10

Stephen Rauch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!