#!/usr/bin/env python # -*- coding: utf-8 -*- # ==================================================================== # # Author: Sonia Labetoulle # # Contact: sonia.labetoulle _at_ ipsl.jussieu.fr # # Created: 2016 # # History: # # Modification: # # ==================================================================== # # This must come first from __future__ import print_function, unicode_literals, division # Standard library imports import os # import math from argparse import ArgumentParser import shutil import pprint import collections import ConfigParser as cp import datetime as dt import subprocess from distutils.dir_util import copy_tree # Application library imports import libconso_db as cdb # import libconso_cpt as ccpt import db_data pp = pprint.PrettyPrinter(indent=2) ####################################################################### def get_arguments(): parser = ArgumentParser() # parser.add_argument("project", action="store", # help="Project name") # parser.add_argument("center", action="store", # help="Center name (idris/tgcc)") parser.add_argument("-v", "--verbose", action="store_true", help="verbose mode") parser.add_argument("-d", "--dryrun", action="store_true", help="only print what is to be done") # parser.add_argument("-r", "--range", action="store", nargs=2, # help="date range: ssaammjj ssaammjj") return parser.parse_args() ######################################################################## def html_header(project, css_file): html = ( "\n" "\n" "
\n" " \n" " \n" " \n" "{} | \n" "
---|
\n" " \n" " {}\n" " \n" " | \n" "