earthdiags 494 Bytes
Newer Older
#!/usr/bin/env python

"""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
from earthdiagnostics.earthdiags import EarthDiags


# noinspection PyProtectedMember
def main():
    if not EarthDiags.parse_args():
        os._exit(1)
    os._exit(0)

if __name__ == "__main__":
    main()