(cwd, args)
Start a new terminator instance with the given arguments
Start a new terminator instance with the given arguments
Start a new terminator instance with the given arguments
def spawn_new_terminator(cwd, args):
    """Start a new terminator instance with the given arguments"""
    cmd = sys.argv[0]

    if not os.path.isabs(cmd):
        # Command is not an absolute path. Figure out where we are
        cmd = os.path.join (cwd, sys.argv[0])
        if not os.path.isfile(cmd):
            # we weren't started as ./terminator in a path. Give up
            err('Unable to locate Terminator')
            return False
      
    dbg("Spawning: %s" % cmd)
    subprocess.Popen([cmd]+args)
def spawn_new_terminator ( cwd , args ) : cmd = sys . argv [ 0 ] if not os . path . isabs ( cmd ) : # Command is not an absolute path. Figure out where we are cmd = os . path . join ( cwd , sys . argv [ 0 ] ) if not os . path . isfile ( cmd ) : # we weren't started as ./terminator in a path. Give up err ( 'Unable to locate Terminator' ) return False dbg ( "Spawning: %s" % cmd ) subprocess . Popen ( [ cmd ] + args )