My python file will execute code from another python file and when I deleted the file the code was excuted from other files it gave me an error

My python file will execute code from another python file and when I deleted the file the code was executed from other files it gave me an error. I have so many issues with PyCharm and this is one of them. So I deleted the python file with the code that kept being outputted in other different files. For example, the code in coolfile.py had the same output when I clicked the play button in duck.py. When I deleted coolfile.py too try to get output from duck.py I got an error which I think means PyCharm is looking for the file directory of coolfile.py and executes on any other files console. It's super annoying. I did this on PyCharm 2018.3.2. Heres the error message I got when I deleted the coolfile.py or in my case it was firstpython.py

I am going to reinstall PyCharm. Very disappointed in this opensource project.

1 comment
Comment actions Permalink

Hi,

This issue is probably due to a misunderstanding of run/debug configurations. I would suggest to familiarize yourself with their usage: https://www.jetbrains.com/help/pycharm/run-debug-configuration.html

You may also find useful this tutorial video from our learning center: https://www.youtube.com/watch?time_continue=30&v=JLfd9LOdu_U

0

Please sign in to leave a comment.