Differences From Artifact [150ee1b1ab]:
- Executable file vws — part of check-in [48132590a1] at 2015-11-17 06:52:16 on branch trunk — Implemented monitor. started usb code (user: vitus, size: 9200) [annotate] [blame] [check-ins using]
To Artifact [14e25b598f]:
- Executable file vws — part of check-in [2d6b5b3575] at 2015-11-17 15:36:17 on branch trunk — Skip unexisting dirs in find_vm (user: vitus, size: 9264) [annotate] [blame] [check-ins using]
︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | + + | import os,sys,time VERSION=0.1 def find_vm(name): search_path=[os.environ['HOME']+"/VWs", config.get("directories","SharedVMs"), config.get("directories","AutostartVMs")] for dirname in search_path: if not os.access(dirname,os.X_OK): continue if name in os.listdir(dirname): return dirname+"/"+name raise ValueError("Machine "+name+" not found.") def connect_vm(vm_dir): sock=socket.socket(socket.AF_UNIX) |
︙ |