~maddevelopers/mg5amcnlo/2.7.1.3

« back to all changes in this revision

Viewing changes to aloha/create_aloha.py

  • Committer: olivier Mattelaer
  • Date: 2016-06-09 23:51:14 UTC
  • mfrom: (262.9.33 2.4.1_new)
  • Revision ID: olivier.mattelaer@uclouvain.be-20160609235114-saz2i0eou1az8lsv
pass to 2.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
664
664
        # Check that all routine are generated at default places:
665
665
        for (name, outgoing), abstract in self.items():
666
666
            routine_name = AbstractRoutineBuilder.get_routine_name(name, outgoing)
667
 
            if not glob.glob(os.path.join(output_dir, routine_name) + '.' + ext[format]):
 
667
            if not os.path.exists(os.path.join(output_dir, routine_name) + '.' + ext[format]):
668
668
                abstract.write(output_dir, format) 
669
669
            else:
670
670
                logger.info('File for %s already present, skip the writing of this file' % routine_name)
1045
1045
 
1046
1046
        ext_files  = []
1047
1047
        for path in paths:
1048
 
            ext_files = glob.glob(os.path.join(path, '%s.%s' % (name, ext)))
 
1048
            ext_files = misc.glob('%s.%s' % (name, ext), path)
1049
1049
            if ext_files:
1050
1050
                break
1051
1051
        else: