Dec-11-2016, 05:37 PM
Quote:The creation of objects will normally be in the script you import this from, not inside the module itself.
When I move t = module.test to the module file I changed it to t = test Then main() was changed to look like this:
import module def main(): s = module.t s.a() s.b() print("done") if __name__=="__main__": main()Is that what you meant?