hg
changeset 7672 523c7816c33a
parent 5531 a3fe91b4f6eb
child 8225 46293a0c7e9f
--- a/hg	Mon Jan 19 13:20:47 2009 +0100
+++ b/hg	Mon Jan 19 16:19:09 2009 -0600
@@ -8,7 +8,14 @@
 # of the GNU General Public License, incorporated herein by reference.
 
 # enable importing on demand to reduce startup time
-from mercurial import demandimport; demandimport.enable()
+try:
+    from mercurial import demandimport; demandimport.enable()
+except ImportError:
+    import sys
+    sys.stderr.write("abort: couldn't find mercurial libraries in [%s]\n" %
+                     ' '.join(sys.path))
+    sys.stderr.write("(check your install and PYTHONPATH)\n")
+    sys.exit(-1)
 
 import sys
 import mercurial.util