Permalink
Browse files

Warn if ai module is not compiled

Ask user to run 'make' is ai module is not present.
  • Loading branch information...
1 parent 2460cf3 commit 2b1ce80ac6e1398b3bda329bc021f1aec54b7b65 @lczerner lczerner committed Dec 4, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 MysticMine
View
@@ -1,4 +1,11 @@
#!/usr/bin/env python
+
+import sys
+try:
+ import monorail.ai
+except ImportError:
+ print "Error: ai module not present. Run 'make' first!"
+ sys.exit(1)
import monorail.monorail
-monorail.monorail.main()
+monorail.monorail.main()

0 comments on commit 2b1ce80

Please sign in to comment.