From 01dadd7d2a1c889abcd3158f86e9c81d8f64174c Mon Sep 17 00:00:00 2001 From: Guillaume Chazarain Date: Thu, 20 Mar 2008 18:20:59 +0100 Subject: [PATCH] Detect unsuccessful attempts at running an uninstalled pysize --- bin/pysize | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/pysize b/bin/pysize index 382142d..2687cce 100755 --- a/bin/pysize +++ b/bin/pysize @@ -1,5 +1,10 @@ #!/usr/bin/env python -from pysize.main import main -main() - +try: + from pysize.main import main +except ImportError, e: + print e + print 'To run an uninstalled copy of pysize,' + print 'launch pysize.py in the top directory' +else: + main() -- 2.11.4.GIT