What is the difference between: cfg.py vs config.py?

I wrote a bot for twitch, and made the structure of 3 files:
1 config.py - only constant data
2 the file API, with the bot's functionality
3 bot, which describes the logic

2 hours I couldn't deal with one nasty bug, and then it turned out that I instead config.py you need to write cfg.py.

What is that a joke? )
Python as something special interpreterpath cfg.py what?
July 9th 19 at 11:01
1 answer
July 9th 19 at 11:03
In the General case there is no difference
but in the case of config - nothing works, and cfg - all works. - evan_Wunsch13 commented on July 9th 19 at 11:06
there is no such thing in programming as "all"
There are specifically your case, what you did wrong and then corrected - marilyne_Roh commented on July 9th 19 at 11:09
in my case, it all worked, what didn't work. I corrected only the file name, lol. - evan_Wunsch13 commented on July 9th 19 at 11:12
well, as

import cfg
instead
import config

and instead of correcting the imports to "fix" the file name
there's your lol - marilyne_Roh commented on July 9th 19 at 11:15

Find more questions by tags Python