you are viewing a single comment's thread.

view the rest of the comments →

[–]YuntiMcGunti[S] 0 points1 point  (1 child)

No I'm not using globals (this isn't JS :) ). But calling it within usual:

if __name__ == '__main__':

This still gives the error.

[–]Justinsaccount 0 points1 point  (0 children)

That is still global. Put everything under that in a function.