Expose __main__
Hi everybody, is this legal in python?. Seems to work ... Thanks # with these lines you not need global variables anymore if __name__ == '__main__': import __main__ as main else: main = __import__(os.path.basename(os.path.splitext(__file__))) var_in_main = 0 # now any var is a global var, you can access any var from every...