title: Psychopy: Call a conditions file from the outer loop's conditions file
body: <p>I am a bit new to <code>PsychoPy</code> and <code>Python</code> coding, so please excuse my question if it is basic. In my task, I have a number of files that dictate the position of stimuli. My outer loop has a variable, <code>ExcelList</code>, which has the previously mentioned file names listed under it. The inner loop, which dictates each trial, attempts to call these files at random by entering <code>$ExcelList</code> into the space asking for a conditions file. As I understand it, the command for <code>$ExcelList</code> should access the conditions file in the outer loop and pull one of the files containing stimuli positions for that trial. However, I am instead presented with the following error:</p>
  
  <blockquote>
    <p>File "/Users/bencline/Desktop/Psychexp/NegPriming2080_lastrun.py",
    line 247, in module>
        trialList=data.importConditions(ExcelList),   File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/data.py",
    line 1366, in importConditions
        raise ImportError('Conditions file not found: %s' %os.path.abspath(fileName)) ImportError: Conditions file not found:
    /Users/bencline/Desktop/Psychexp/Trials_20_95.xlsx</p>
  </blockquote>
  
  <p>It would appear that the inner loop is not finding the condition in the outer loop (or not reading the outer loop altogether). If I try instead writing <code>$eval(ExcelList)</code> I am presented with the following error:</p>
  
  <blockquote>
    <p>File "/Users/bencline/Desktop/Psychexp/NegPriming2080_lastrun.py",
    line 247, in 
        trialList=data.importConditions(eval(ExcelList)),   File "", line 1, in  NameError: name 'Trials_20_95' is not
    defined</p>
  </blockquote>
  
  <p>This seems more indicative of the underlying problem, but I'm still not sure how to proceed from here. Do you have any suggestions for why this is happening and how I could potentially fix it?</p>
  
  <p>Thank you,</p>
  
  <p>-Ben</p>