#!/usr/bin/env python
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
#   See COPYING file distributed along with the datalad package for the
#   copyright and license terms.
#
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
"""A shim to invoke DataLad top-level command line utility"""

if __name__ == '__main__':
	try:
		import datalad
	except ImportError:
		# must be running within source code
		from os.path import dirname
		import sys
		sys.path.append(dirname(dirname(__file__)))

    from datalad.cmdline.main import main
    main()
