Overview
Comment: | Skip unexisting dirs in find_vm |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
2d6b5b3575cddbbb57be19b93e8b4a70 |
User & Date: | vitus on 2015-11-17 15:36:17 |
Other Links: | manifest | tags |
Context
2015-11-18
| ||
14:44 | Implemented list --state. Fixed first start of vm, when no monitor socket exists yet check-in: 33f6d5eeca user: vitus tags: trunk | |
2015-11-17
| ||
15:36 | Skip unexisting dirs in find_vm check-in: 2d6b5b3575 user: vitus tags: trunk | |
06:52 | Implemented monitor. started usb code check-in: 48132590a1 user: vitus tags: trunk | |
Changes
Modified vws from [150ee1b1ab] to [14e25b598f].
︙ | ︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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 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) | > > | 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) |
︙ | ︙ |