title: Jython does not catch Exceptions
body: <p>Jython doesn't have the <code>-m</code> option, and it raises an error with <code>from .utils import *</code>.</p>
  
  <p>The solution is not to use relative path</p>
  
  <pre><code>sys.path.insert(0, os.path.dirname(__file__))
  from utils import *
  </code></pre>
  
  <p>As I need to use the code both Jython and CPython, I came up with this command:</p>
  
  <pre><code>try:
      from .utils import *
  except Exception: # Jython or Python with python context/context.py invocation
      sys.path.insert(0, os.path.dirname(__file__))
      from utils import *
  </code></pre>
  
  <p>However, Jython doesn't seem to catch the exception, and still generates an exception.</p>
  
  <pre><code>  File "context/context.py", line 9
  SyntaxError: 'import *' not allowed with 'from .'
  </code></pre>
  
  <p>Based on <a href="https://stackoverflow.com/questions/22305438/how-to-know-that-the-interpreter-is-jython-or-cpython-in-the-code">How to know that the interpreter is Jython or CPython in the code?</a>, I tried </p>
  
  <pre><code>binary = sys.executable
  if binary is None:
      sys.path.insert(0, os.path.dirname(__file__))
      from utils import *
  else:
      from .utils import *
  </code></pre>
  
  <p>I still get the <code>SyntaxError</code>, why Jython interpreter keeps parsing <code>from .utils import *</code> when it was supposed to do so; I mean, this code works.</p>
  
  <pre><code>binary = sys.executable
  if binary is None:
      sys.path.insert(0, os.path.dirname(__file__))
      from utils import *
  else:
      pass
  </code></pre>
  
  <p>This is my Jython information:</p>
  
  <pre><code>Jython 2.7b1 (default:ac42d59644e9, Feb 9 2013, 15:24:52) 
  [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_51
  Type "help", "copyright", "credits" or "license" for more information.
  </code></pre>