'My python function runs twice even when I call it once

The return statement in test.py returns the output(return value) twice, even when it is called once. I have not called the function in try_resume_screen.py. Is circular dependency responsible for this?

This is test.py link

This is try_resume_screen.py



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source