

def __call__(self, ip, line):
    if self.script.endswith('.ipy'):
        ip.runlines(open(self.script).read())
    else:
        tup = line.split(None, 1)
        if (len(tup) == 2):
            tail = (' ' + tup[1])
        else:
            tail = ''
        selflaunch(ip, (('py ' + self.script) + tail))

dataset/ETHPy150Open ipython/ipython-py3k/IPython/quarantine/ipy_rehashdir.py PyLauncher.__call__/original