15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
-
+
|
import shlex
import shutil
import sys
import time
import pwd
import grp
VERSION = "0.8.1"
__version__ = "0.8.2"
config = ConfigParser(interpolation=None) # pylint: disable=invalid-name
def find_vm(name):
"""Search and return VM directory"""
search_path = [
|
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
|
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
|
-
+
|
if keyspec == " ":
keyspec = "spc"
print(send_command(options.sock, "sendkey " + keyspec))
def cmd_version(_):
"""vws cersion"""
print(VERSION)
print(__version__)
def cmd_snapshot(options):
"""vws snapshot - create snapshot"""
if not options.stopped:
print("Cannot make snapshot of running VW", file=sys.stderr)
sys.exit(1)
|