python-firebase icon indicating copy to clipboard operation
python-firebase copied to clipboard

Windows import of module causes program to loop

Open shaycraft opened this issue 9 years ago • 1 comments

So, on Linux it works fine, but I have this problem on 3 completely separate windows machines. The following code:

from firebase import *
print "test"

Causes the following output: test test test test test test

For some reason, simply importing the module causes the main program to loop 6 times, but only in Windows. Hopefully someone has some idea why it's doing this.

shaycraft avatar Mar 07 '15 05:03 shaycraft

I ran into the same problem, but putting in a main function seems to be a work around for it.

from firebase import firebase

def main():
    print "test"

if __name__ == "__main__":
    main()

labrenzm avatar May 24 '15 05:05 labrenzm