Skip to content

Commit

Permalink
Warn if ai module is not compiled
Browse files Browse the repository at this point in the history
Ask user to run 'make' is ai module is not present.
  • Loading branch information
lczerner committed Dec 4, 2012
1 parent 2460cf3 commit 2b1ce80
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion MysticMine
@@ -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.