Project

General

Profile

« Previous | Next » 

Revision 1848

bin/map: If cpus is 0, run without Parallel Python

View differences:

bin/map
112 112
    profiler = profiling.ItersProfiler(start_now=True, iter_text='row')
113 113
    
114 114
    try: import pp
115
    except ImportError: pass
116
    else:
115
    except ImportError: cpus = 0
116
    if cpus != 0:
117 117
        if cpus != None: args = [cpus]
118 118
        else: args = []
119 119
        job_server = pp.Server(*args)

Also available in: Unified diff