12 |
|
from optparse import OptionParser |
13 |
|
import sys |
14 |
|
from subprocess import Popen, PIPE, STDOUT |
15 |
< |
from readProv import * |
16 |
< |
from diffProv import * |
15 |
> |
from PhysicsTools.PythonAnalysis.readProv import * |
16 |
> |
from PhysicsTools.PythonAnalysis.diffProv import * |
17 |
|
|
18 |
|
|
19 |
< |
usage = "usage: %prog filename1 filename2" |
19 |
> |
usage = "usage: %prog filename1 filename2" |
20 |
|
parser = OptionParser(usage=usage, version="%prog 0.1") |
21 |
|
parser.add_option("-v", "--verbosity_level", dest="verbose", help="[0] to print short message [1], to print details about the differences of modules common to both files, [2] to print all the details about the differences between the two files") |
22 |
|
(options, args) = parser.parse_args() |
23 |
|
|
24 |
|
if len(args) != 2: |
25 |
< |
print 'Incorrect usage' |
25 |
> |
parser.error('Please specify two EDM files to compare') |
26 |
|
|
27 |
|
def provenance(args): |
28 |
|
cmd="edmProvDump "+args |