title: NameError: name 'process' is not defined (python)
body: <p>I have a python script which looks like:</p>
  
  <pre><code> if options.benchmark == 'perlbench':
       process = Mybench.perlbench
   elif options.benchmark == 'bzip2':
       process = Mybench.bzip2
   elif options.benchmark == 'gcc':
       process = Mybench.gcc
   ....
   np = 1
   ....
   for i in xrange(np):   
       ... 
       system.cpu[i].workload = process[i]
  </code></pre>
  
  <p>However I get this error:</p>
  
  <pre><code>system.cpu[i].workload = process[i]
  
  NameError: name 'process' is not defined
  </code></pre>
  
  <p>Any idea on how to fix that? I am not an expert in python.</p>