Commit 96f22276 authored by Djelloul Bekri's avatar Djelloul Bekri

add open mgvCom command

parent 0d7ff931
......@@ -52,8 +52,9 @@ def sendToMgv(msg, address=None, port=None):
return text
def open(path):
path = ':'.join([os.getenv("MGVPROJECTNAME"), os.getenv("MGVPATTERNNAME"), os.getenv("MGVGRAPHKEYS")])
def open(path=None):
if path is None:
path = ':'.join([os.getenv("MGVPROJECTNAME"), os.getenv("MGVPATTERNNAME"), os.getenv("MGVGRAPHKEYS")])
msg = "*MGVSEPARATOR*".join(["OPEN", path])
return sendToMgv(msg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment