Index: vws ================================================================== --- vws +++ vws @@ -4,11 +4,11 @@ import fcntl import socket,select import errno import re import os,sys,time -VERSION=0.1 +VERSION=0.2 def find_vm(name): search_path=[os.environ['HOME']+"/VWs", config.get("directories","SharedVMs"), config.get("directories","AutostartVMs")] for dirname in search_path: @@ -257,10 +257,11 @@ if m: result.append(m.group(1)) return result def cmd_snapshot(options): + import os.path if not options.stopped: print >>sys.stderr,"Cannot make snapshot of running VW" return 1 drives=get_drives(options.dir) os.chdir(options.dir)