示例#1
0
def shell(com):
    try:
        _exec.call(com)
    except:
        print "some sort of shell error"
        print "this feature isn't fully integrated yet."
示例#2
0
def clear_c():
    try:
        _exec.call("clear")
    except:
        print "shell error"
示例#3
0
def shell(com):
	try:
		_exec.call(com)
	except:
		print "some sort of shell error"
		print "this feature isn't fully integrated yet."
示例#4
0
    out = _exec.check_output("ls scripts/talos")

    scripts = []

    for script in out.split("\n"):
        if script == "." or script == ".." or len(script) == 0:
            continue
        print str(len(scripts)) + ") " + script
        scripts.append(script)

    print "Type Exit to exit"

    choice = raw_input(">>> ")
    if choice == "exit" or choice == "quit":
        sys.exit(0)

    if int(choice) < 0 or int(choice) > len(scripts) - 1:
        continue

    try:
        _exec.call(
            "python ./talos.py --script scripts/talos/%s" %
            (scripts[int(choice)]), True)
    except:
        print "<><>"

    time.sleep(0.1)
    choice = raw_input("Exit or Launch New? [e/n]: ")
    if choice.lower() != "n":
        sys.exit(0)
示例#5
0
while True:
	out = _exec.check_output("ls scripts/mad")

	scripts = []


	for script in out.split("\n"):
		if script == "." or script == ".." or len(script) == 0:
			continue
		print str(len(scripts)) + ") " + script
		scripts.append(script)

	print "Type Exit to exit"

	choice = raw_input(">>> ")
	if choice == "exit" or choice == "quit":
		sys.exit(0)

	if int(choice) < 0 or int(choice) > len(scripts) -1:
		continue 

	try:
		_exec.call("python ./mad.py --script scripts/mad/%s" % (scripts[int(choice)]), True)
	except:
		print "<><>"

	time.sleep(0.1)
	choice = raw_input("Exit or Launch New? [e/n]: ")
	if choice.lower() != "n":
		sys.exit(0)
示例#6
0
while True:
	out = _exec.check_output("ls scripts/talos")

	scripts = []


	for script in out.split("\n"):
		if script == "." or script == ".." or len(script) == 0:
			continue
		print str(len(scripts)) + ") " + script
		scripts.append(script)

	print "Type Exit to exit"

	choice = raw_input(">>> ")
	if choice == "exit" or choice == "quit":
		sys.exit(0)

	if int(choice) < 0 or int(choice) > len(scripts) -1:
		continue 

	try:
		_exec.call("python ./talos.py --script scripts/talos/%s" % (scripts[int(choice)]), True)
	except:
		print "<><>"

	time.sleep(0.1)
	choice = raw_input("Exit or Launch New? [e/n]: ")
	if choice.lower() != "n":
		sys.exit(0)