I have already seen similar questions to the same topic, but couldn't find a solution for my particular problem.
I have a class definition in a python submodule that I import in my main python script. As the class uses a library that needs the "__name__ == __main__
"-protective wrapper for parallel computation in Windows, I use "__name__ == __main__
" in my main python script.
I want to avoid the protective wrapper in my main script, though. Is it possible to have the "__name__ == __main__
"-protective wrapper in the python submodule where I define the class?
I work on a Windows machine and the python library that needs the protective wrapper is called TBATS (https://github.com/intive-DataScience/tbats).