spath: Allow importing even when not compiled.

This commit is contained in:
Stefan van der Walt
2009-11-03 10:00:57 +02:00
parent 899497d0e0
commit 1e264b61d8
+9 -1
View File
@@ -1 +1,9 @@
from spath import shortest_path
try:
from spath import shortest_path
except ImportError:
print """*** The shortest path extension has not been compiled. Run
python setup.py build_ext -i
in the source directory to build in-place. Please refer to INSTALL.txt
for further detail."""