Newer
Older
Javier Vegas-Regidor
committed
#!/usr/bin/env python
Javier Vegas-Regidor
committed
"""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
Javier Vegas-Regidor
committed
from earthdiagnostics.earthdiags import EarthDiags
# noinspection PyProtectedMember
def main():
"""
Entry point for the Earth Diagnostics
"""
Javier Vegas-Regidor
committed
if not EarthDiags.parse_args():
os._exit(1)
os._exit(0)
if __name__ == "__main__":