浏览代码

Remove unneeded code

Yentl Van Tendeloo 9 年之前
父节点
当前提交
c7067f7ffa
共有 1 个文件被更改,包括 0 次插入14 次删除
  1. 0 14
      scripts/prompt.py

+ 0 - 14
scripts/prompt.py

@@ -10,20 +10,6 @@ def local_print(string):
 def remote_print(string):
     print("\033[94m%s\033[0m" % string)
 
-def execute(scriptname, parameters=[], wait=False):
-    if os.name == "nt":
-        command = ["%s.bat" % scriptname] + parameters
-    elif os.name == "posix":
-        command = ["./%s.sh" % scriptname] + parameters
-    else:
-        raise Exception("Unknown OS: " + str(os.name))
-
-    if wait:
-        return subprocess.call(command, shell=False)
-        return subprocess.call(command, shell=False, stdout=open('/tmp/output', 'w'), stderr=open('/tmp/output', 'w'))
-    else:
-        return subprocess.Popen(command, shell=False, stdout=open('/tmp/output', 'w'))
-
 local_print("Welcome to the local shell!")
 local_print("Please specify Modelverse location (default: localhost:8001)")