소스 검색

Remove unneeded code

Yentl Van Tendeloo 9 년 전
부모
커밋
28ff4f0821
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)")