1
#============================================================================
3
# This file is part of the Code_Saturne Kernel, element of the
4
# Code_Saturne CFD tool.
6
# Copyright (C) 1998-2008 EDF S.A., France
8
# contact: saturne-support@edf.fr
10
# The Code_Saturne Kernel is free software; you can redistribute it
11
# and/or modify it under the terms of the GNU General Public License
12
# as published by the Free Software Foundation; either version 2 of
13
# the License, or (at your option) any later version.
15
# The Code_Saturne Kernel is distributed in the hope that it will be
16
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
17
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
# GNU General Public License for more details.
20
# You should have received a copy of the GNU General Public License
21
# along with the Code_Saturne Kernel; if not, write to the
22
# Free Software Foundation, Inc.,
23
# 51 Franklin St, Fifth Floor,
24
# Boston, MA 02110-1301 USA
26
#============================================================================
27
#-------------------------------------------------------------------------------
28
# Library modules import
29
#-------------------------------------------------------------------------------
33
#-------------------------------------------------------------------------------
34
# Application modules import
35
#-------------------------------------------------------------------------------
36
import Autovalidation.Common as Common
44
Usage:\n\nautovalid -f [xml file name] [-d [local directory]]
46
Valid options are one or more of the following:
49
--file [xml file name]
51
Upload a studies list.
54
--tmpdirectory [directory]
56
Define the local directory.
61
Prints this help message.
62
----------------------------------------------------------------------
66
def process_cmd_line (arg):
69
long_opts = ['file=', 'help', 'tmpdirectory=']
72
opts, args = getopt.getopt(arg, options, long_opts)
73
except getopt.error, msg:
74
print "\nWarning:\n", msg
76
print "Warning:\n", msg, "\n"
79
if (opts and args) or len(args)>1 :
83
if not opts and args :
88
if o in ('-f', '--file'):
89
Common.XMLFileName = a
90
if o in ('-d', '--tmpdirectory'):
91
Common.tmpDirectory = a
92
if o in ('-h', '--help'):
96
if Common.XMLFileName == "":