Need to include one file multiple times, how to avoid warning

When the project is large, there are too many warnings as follows.

Yes, these warnings are important, and they are trying to tell you that by calling include() on the same file multiple times you are re-defining the same function over and over, which is at best wasteful and at worst can lead to problems like Trouble importing a module that depends on another globally imported module

2 Likes