Yentl Van Tendeloo 9 лет назад
Родитель
Сommit
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)")