@_call_aside
def _initialize_master_working_set():
 working_set = WorkingSet._build_master()
 _declare_state('object', working_set=working_set)
 require = working_set.require
 iter_entry_points = working_set.iter_entry_points
 add_activation_listener = working_set.subscribe
 run_script = working_set.run_script
 run_main = run_script
 dist = None
 for dist in working_set:
  dist.activate(replace=False)
 del dist
 add_activation_listener((lambda dist: dist.activate(replace=True)), existing=False)
 working_set.entries = []
 list(map(working_set.add_entry, sys.path))
 globals().update(locals())

@ _call_aside def _initialize_master_working_set ( ) : working_set = WorkingSet . _build_master ( ) _declare_state ( 'object' , working_set = working_set ) require = working_set . require iter_entry_points = working_set . iter_entry_points add_activation_listener = working_set . subscribe run_script = working_set . run_script run_main = run_script dist = None for dist in working_set : dist . activate ( replace = False ) del dist add_activation_listener ( ( lambda dist : dist . activate ( replace = True ) ) , existing = False ) working_set . entries = [ ] list ( map ( working_set . add_entry , sys . path ) ) globals ( ) . update ( locals ( ) )
prepare the master working set and make the require() api available .