#!/usr/bin/env python # coding=utf-8 """Script for launching Earth Diagnostics""" import os import sys scriptdir = os.path.abspath(os.path.dirname(sys.argv[0])) assert sys.path[0] == scriptdir sys.path[0] = os.path.normpath(os.path.join(scriptdir, os.pardir)) # noinspection PyUnresolvedReferences,PyPep8 from earthdiagnostics.earthdiags import EarthDiags # noinspection PyProtectedMember def main(): """ Entry point for the Earth Diagnostics """ if not EarthDiags.parse_args(): os._exit(1) os._exit(0) if __name__ == "__main__": main()