What is the best strategy for dividing your python scripts over several files? Specifically the problem I'm having is sharing access to the world object. The initial script loaded by Mushclient can access world, but anything imported by this script cannot. I could do something like ham-handedly passing the world to another module that's shared by all the modules, but I was wondering if anyone had already thought about this and figured out something simpler.
Distributing Python Script
Posted by Candido on Sat 22 Dec 2012 12:54 AM — 1 posts, 12,627 views.