summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-07-28 22:35:17 +0300
committerAlon Levy <alevy@redhat.com>2011-07-28 22:35:17 +0300
commit633cc1a03b805f6000d3e80de1b2528db6f0a535 (patch)
tree62f25f81774005af5b4fb611e303496b9f6745d3
parent322007edaf719d57b515b8f4529c2d4229611ea4 (diff)
check for argparse
-rwxr-xr-xspice27
1 files changed, 6 insertions, 1 deletions
diff --git a/spice2 b/spice2
index 0761ab2..b9717f2 100755
--- a/spice2
+++ b/spice2
@@ -4,7 +4,6 @@ import signal
import os
import sys
import subprocess
-import argparse
import atexit
import socket
import datetime
@@ -14,6 +13,12 @@ import shutil
import itertools
try:
+ import argparse
+except:
+ print "missing argparse. try: easy_install argparse"
+ sys.exit(1)
+
+try:
import guestfs
import hivex
except: