Pycharm 2018.2 __name__ is no longer main when running with Interactive Console.

I am used to running my codes with the interactive console output so that a script is finished running I can look at variables or such as needed. I am used to running these scripts with the if __name__ == '__main__': condition. With the new Pycharm 2018.2 update, it seems I can no longer do that. Looking at this further, the __name__ is no longer '__main__' but is now replaced with 'builtins'. Has anyone else come across this issue? This seems like a major hiccup in the program and I can no longer run my codes as I am used to and am kind of stuck. 

2
1 comment

This has been fixed for the next update: PY-30939

0

Please sign in to leave a comment.