Permalink
Browse files

[master] run_owl_shell could run without ipython

  • Loading branch information...
1 parent 3610f33 commit a67ae949541c602588ca8e36d86187724fcebcb5 @jermainewang jermainewang committed Apr 18, 2015
Showing with 10 additions and 2 deletions.
  1. +10 −2 run_owl_shell.sh
View
@@ -1,3 +1,11 @@
-#!/bin/sh
+#!/bin/bash
-ipython -i owl/minerva_start.py
+PYTHON=
+
+if [ `command -v ipython >/dev/null 2>&1` ]; then
+ PYTHON=python
+else
+ PYTHON=ipython
+fi
+
+$PYTHON -i owl/minerva_start.py

0 comments on commit a67ae94

Please sign in to comment.