# -*- coding:utf-8 -*-
import os
def run_sensorcompass():
	path = "/home/suyf/swork/git/sensorcompass/web/"
	os.chdir(path)
	val = os.system("./apprun.py")
def run_sensorcompass_web():
	path = "/home/suyf/swork/git/sensorcmd-web/web/"
	os.chdir(path)
	val = os.system("./apprun.py")
def run_cas():
	path = "/home/suyf/swork/git/cas/web/"
	os.chdir(path)
	val = os.system("./casrun.py")

if __name__ == '__main__':
	choose = input("Please input your project(int):\n")
	if int(choose) == 1:
		cas_val = run_cas()
		val = run_sensorcompass()
		print val,cas_val
	if int(choose) == 2:
		cas_val = run_cas()
		val = run_sensorcompass_web()
		print val,cas_val