|
@@ -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)")
|
|
|
|