3 |
|
import os |
4 |
|
import fileinput |
5 |
|
from array import * |
6 |
< |
from optparse import OptionParser |
6 |
> |
import argparse |
7 |
|
from OSUT3Analysis.Configuration.configurationOptions import * |
8 |
|
from OSUT3Analysis.Configuration.processingUtilities import * |
9 |
|
|
10 |
< |
parser = OptionParser() |
10 |
> |
parser = argparse.ArgumentParser() |
11 |
|
parser = set_commandline_arguments(parser) |
12 |
|
|
13 |
< |
(options, args) = parser.parse_args() |
13 |
> |
arguments = parser.parse_args() |
14 |
|
|
15 |
< |
if options.localConfig: |
15 |
> |
if arguments.localConfig: |
16 |
|
sys.path.append(os.getcwd()) |
17 |
< |
exec("from " + options.localConfig.rstrip('.py') + " import *") |
17 |
> |
exec("from " + arguments.localConfig.rstrip('.py') + " import *") |
18 |
|
|
19 |
< |
condor_dir = set_condor_output_dir(options) |
19 |
> |
condor_dir = set_condor_output_dir(arguments) |
20 |
|
|
21 |
|
from ROOT import TFile, gROOT, gStyle, gDirectory, TKey |
22 |
|
|