Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/m/e/mercurial-2.9.1/mercurial/hook.py   Mercurial(Download)
        modname = funcname[:d]
        oldpaths = sys.path
        if util.mainfrozen():
            # binary installs require sys.path manipulation
            modpath, modfile = os.path.split(modname)

src/h/g/hg-HEAD/mercurial/hook.py   hg(Download)
        modname = funcname[:d]
        oldpaths = sys.path
        if util.mainfrozen():
            # binary installs require sys.path manipulation
            modpath, modfile = os.path.split(modname)

src/h/g/hg-HEAD/mercurial/templater.py   hg(Download)
 
    # executable version (py2exe) doesn't support __file__
    if util.mainfrozen():
        module = sys.executable
    else:

src/m/e/mercurial-2.9.1/mercurial/templater.py   Mercurial(Download)
 
    # executable version (py2exe) doesn't support __file__
    if util.mainfrozen():
        module = sys.executable
    else:

src/h/g/hg-HEAD/mercurial/help.py   hg(Download)
    def loader():
        if util.mainfrozen():
            module = sys.executable
        else:
            module = __file__

src/m/e/mercurial-2.9.1/mercurial/help.py   Mercurial(Download)
    def loader():
        if util.mainfrozen():
            module = sys.executable
        else:
            module = __file__