import sys
from xia2_main import run

if __name__ == '__main__':
  if 'small_molecule=true' not in sys.argv:
    sys.argv.insert(1, 'small_molecule=true')
  run()

from __future__ import division

if __name__ == '__main__':
  import sys
  if 'small_molecule=true' not in sys.argv:
    sys.argv.insert(1, 'small_molecule=true')
  # clean up command-line so we know what was happening i.e. xia2.small_molecule
  # becomes xia2 small_molecule=true (and other things) but without repeating
  # itself
  import libtbx.load_env
  libtbx.env.dispatcher_name = 'xia2'
  from xia2_main import run
  run()

Reduce redundancy in corrected command-line; replace dispatcher name with xia2 from xia2.small molecule for print out
Reduce redundancy in corrected command-line; replace dispatcher name with xia2 from xia2.small molecule for print out
