~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to tests/parallel_tests/sample_script.py

  • Committer: olivier-mattelaer
  • Date: 2020-08-21 09:16:56 UTC
  • mfrom: (284.2.24 python3)
  • Revision ID: olivier-mattelaer-20200821091656-iizux2mj94tkssuo
pass to 2.8.0 (and move to python3 branch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
inheritance of the MERunner class.
21
21
"""
22
22
 
 
23
from __future__ import absolute_import
23
24
import logging
24
25
import logging.config
25
26
import pydoc
30
31
mg5_path = os.sep.join(os.path.realpath(__file__).split(os.sep)[:-3])
31
32
sys.path.append(mg5_path)
32
33
 
33
 
import me_comparator
 
34
from . import me_comparator
34
35
from madgraph import MG4DIR
35
36
mg4_path = os.getcwd()
36
37
 
87
88
    # Print the output
88
89
    my_comp.output_result(filename=filename)
89
90
 
90
 
    pydoc.pager(file(filename,'r').read())
 
91
    pydoc.pager(open(filename,'r').read())
91
92
 
92
93
    # Print a list of non zero processes
93
94
    #print my_comp.get_non_zero_processes()