Logo Search packages:      
Sourcecode: distribute version File versions  Download package

def pkg_resources::run_script (   dist_spec,

Locate distribution `dist_spec` and run its `script_name` script

Definition at line 279 of file pkg_resources.py.

00279                                       :
    """Locate distribution `dist_spec` and run its `script_name` script"""
    ns = sys._getframe(1).f_globals
    name = ns['__name__']
    ns['__name__'] = name
    require(dist_spec)[0].run_script(script_name, ns)

run_main = run_script   # backward compatibility

Generated by  Doxygen 1.6.0   Back to index