Exemplo n.º 1
0
def addSongsBottom(files):
	import shell
	shell.connect()
	shell.remoteExec("from Song import Song")
	for fn in files:
		fn = os.path.abspath(fn)
		assert os.path.exists(fn), "file %r does not exist" % fn
		shell.remoteExec("state.queue.queue.append(Song(%r))" % fn)
Exemplo n.º 2
0
def addSongsBottom(files):
    import shell
    shell.connect()
    shell.remoteExec("from Song import Song")
    for fn in files:
        fn = os.path.abspath(fn)
        assert os.path.exists(fn), "file %r does not exist" % fn
        shell.remoteExec("state.queue.queue.append(Song(%r))" % fn)
Exemplo n.º 3
0
def addSongsTop(files):
	import shell
	shell.connect()
	shell.remoteExec("from Song import Song")
	i = 0
	for fn in files:
		fn = os.path.abspath(fn)
		assert os.path.exists(fn), "file %r does not exist" % fn
		shell.remoteExec("state.queue.queue.insert(%i, Song(%r))" % (i, fn))
		i += 1
Exemplo n.º 4
0
def addSongsTop(files):
	import shell
	shell.connect()
	shell.remoteExec("from Song import Song")
	i = 0
	for fn in files:
		fn = os.path.abspath(fn)
		assert os.path.exists(fn), "file %r does not exist" % fn
		shell.remoteExec("state.queue.queue.insert(%i, Song(%r))" % (i, fn))
		i += 1