Sorry to make this post long, but I thought it might help you to see the compiled code. I copied from where your code got added (closest spot I can get in the builder), and the last line is 728 (just 4 lines after the error line so you can see how that section finishes). Clearly there is something wrong with my spacing in what you gave me as the following won’t format in here as it should…
What did I do wrong? (I did 4 spaces for first line, no spaces for 2nd, and 4 for 3rd)
os.path.isfile(thisFile['abs'])
except ValueError:
print(thisFile[‘abs’])
m1_pr9 = visual.Rect(
win=win, name=‘m1_pr9’,
width=(allSizesXX, allSizesYY)[0], height=(allSizesXX, allSizesYY)[1],
ori=0, pos=(m1_pr9CX , m1_pr9CY),
lineWidth=1, lineColor=None, lineColorSpace=‘rgb’,
fillColor=None, fillColorSpace=‘rgb’,
opacity=1, depth=-1.0, interpolate=True)
m2_pr9 = visual.Rect(
win=win, name=‘m2_pr9’,
width=(allSizesXX, allSizesYY)[0], height=(allSizesXX, allSizesYY)[1],
ori=0, pos=(m2_pr9CX , m2_pr9CY),
lineWidth=1, lineColor=None, lineColorSpace=‘rgb’,
fillColor=None, fillColorSpace=‘rgb’,
opacity=1, depth=-2.0, interpolate=True)
m3_pr9 = visual.Rect(
win=win, name=‘m3_pr9’,
width=(allSizesXX, allSizesYY)[0], height=(allSizesXX, allSizesYY)[1],
ori=0, pos=(m3_pr9CX , m3_pr9CY),
lineWidth=1, lineColor=None, lineColorSpace=‘rgb’,
fillColor=None, fillColorSpace=‘rgb’,
opacity=1, depth=-3.0, interpolate=True)
m4_pr9 = visual.Rect(
win=win, name=‘m4_pr9’,
width=(allSizesXX, allSizesYY)[0], height=(allSizesXX, allSizesYY)[1],
ori=0, pos=(m4_pr9CX , m4_pr9CY),
lineWidth=1, lineColor=None, lineColorSpace=‘rgb’,
fillColor=None, fillColorSpace=‘rgb’,
opacity=1, depth=-4.0, interpolate=True)
m5_pr9 = visual.Rect(
win=win, name=‘m5_pr9’,
width=(allSizesXX, allSizesYY)[0], height=(allSizesXX, allSizesYY)[1],
ori=0, pos=(m5_pr9CX , m5_pr9CY),
lineWidth=1, lineColor=None, lineColorSpace=‘rgb’,
fillColor=None, fillColorSpace=‘rgb’,
opacity=1, depth=-5.0, interpolate=True)
m6_pr9 = visual.Rect(
win=win, name=‘m6_pr9’,
width=(allSizesXX, allSizesYY)[0], height=(allSizesXX, allSizesYY)[1],
ori=0, pos=(m6_pr9CX , m6_pr9CY),
lineWidth=1, lineColor=None, lineColorSpace=‘rgb’,
fillColor=None, fillColorSpace=‘rgb’,
opacity=1, depth=-6.0, interpolate=True)
m7_pr9 = visual.Rect(
win=win, name=‘m7_pr9’,
width=(allSizesXX, allSizesYY)[0], height=(allSizesXX, allSizesYY)[1],
ori=0, pos=(m7_pr9CX , m7_pr9CY),
lineWidth=1, lineColor=None, lineColorSpace=‘rgb’,
fillColor=None, fillColorSpace=‘rgb’,
opacity=1, depth=-7.0, interpolate=True)
m8_pr9 = visual.Rect(
win=win, name=‘m8_pr9’,
width=(allSizesXX, allSizesYY)[0], height=(allSizesXX, allSizesYY)[1],
ori=0, pos=(m8_pr9CX , m8_pr9CY),
lineWidth=1, lineColor=None, lineColorSpace=‘rgb’,
fillColor=None, fillColorSpace=‘rgb’,
opacity=1, depth=-8.0, interpolate=True)
m9_pr9 = visual.Rect(
win=win, name=‘m9_pr9’,
width=(allSizesXX, allSizesYY)[0], height=(allSizesXX, allSizesYY)[1],
ori=0, pos=(m9_pr9CX , m9_pr9CY),
lineWidth=1, lineColor=None, lineColorSpace=‘rgb’,
fillColor=None, fillColorSpace=‘rgb’,
opacity=1, depth=-9.0, interpolate=True)
bl_pr9 = visual.ImageStim(
win=win, name=‘bl_pr9’,
image=‘bottom_left.png’, mask=None,
ori=0, pos=[0,0], size=(allSizesXX, allSizesYY),
color=[1,1,1], colorSpace=‘rgb’, opacity=1,
flipHoriz=False, flipVert=False,
texRes=128, interpolate=True, depth=-10.0)
bl1_pr9 = visual.ImageStim(
win=win, name=‘bl1_pr9’,
image=‘bottom_left.png’, mask=None,
ori=0, pos=[0,0], size=(allSizesXX, allSizesYY),
color=[1,1,1], colorSpace=‘rgb’, opacity=1,
flipHoriz=False, flipVert=False,
texRes=128, interpolate=True, depth=-11.0)
bl2_pr9 = visual.ImageStim(
win=win, name=‘bl2_pr9’,
image=‘bottom_left.png’, mask=None,
ori=0, pos=[0,0], size=(allSizesXX, allSizesYY),
color=[1,1,1], colorSpace=‘rgb’, opacity=1,
flipHoriz=False, flipVert=False,
texRes=128, interpolate=True, depth=-12.0)
bl3_pr9 = visual.ImageStim(
win=win, name=‘bl3_pr9’,
image=‘bottom_left.png’, mask=None,
ori=0, pos=[0,0], size=(allSizesXX, allSizesYY),
color=[1,1,1], colorSpace=‘rgb’, opacity=1,
flipHoriz=False, flipVert=False,
texRes=128, interpolate=True, depth=-13.0)
bl4_pr9 = visual.ImageStim(
win=win, name=‘bl4_pr9’,
image=‘bottom_left.png’, mask=None,
ori=0, pos=[0,0], size=(allSizesXX, allSizesYY),
color=[1,1,1], colorSpace=‘rgb’, opacity=1,
flipHoriz=False, flipVert=False,
texRes=128, interpolate=True, depth=-14.0)
br_pr9 = visual.ImageStim(
win=win, name=‘br_pr9’,
image=‘bottom_right.png’, mask=None,
ori=0, pos=[0,0], size=(allSizesXX, allSizesYY),
color=[1,1,1], colorSpace=‘rgb’, opacity=1,
flipHoriz=False, flipVert=False,
texRes=128, interpolate=True, depth=-15.0)
br1_pr9 = visual.ImageStim(
win=win, name=‘br1_pr9’,
image=‘bottom_right.png’, mask=None,
ori=0, pos=[0,0], size=(allSizesXX, allSizesYY),
color=[1,1,1], colorSpace=‘rgb’, opacity=1,
flipHoriz=False, flipVert=False,
texRes=128, interpolate=True, depth=-16.0)
br2_pr9 = visual.ImageStim(
win=win, name=‘br2_pr9’,
image=‘bottom_right.png’, mask=None,
ori=0, pos=[0,0], size=(allSizesXX, allSizesYY),
color=[1,1,1], colorSpace=‘rgb’, opacity=1,
flipHoriz=False, flipVert=False,
texRes=128, interpolate=True, depth=-17.0)
br3_pr9 = visual.ImageStim(
win=win, name=‘br3_pr9’,
image=‘bottom_right.png’, mask=None,
ori=0, pos=[0,0], size=(allSizesXX, allSizesYY),
color=[1,1,1], colorSpace=‘rgb’, opacity=1,
flipHoriz=False, flipVert=False,
texRes=128, interpolate=True, depth=-18.0)
br4_pr9 = visual.ImageStim(
win=win, name=‘br4_pr9’,
image=‘bottom_right.png’, mask=None,
ori=0, pos=[0,0], size=(allSizesXX, allSizesYY),
color=[1,1,1], colorSpace=‘rgb’, opacity=1,
flipHoriz=False, flipVert=False,
texRes=128, interpolate=True, depth=-19.0)
tl_pr9 = visual.ImageStim(
win=win, name=‘tl_pr9’,
image=‘top_left.png’, mask=None,
ori=0, pos=[0,0], size=(allSizesXX, allSizesYY),
color=[1,1,1], colorSpace=‘rgb’, opacity=1,
flipHoriz=False, flipVert=False,
texRes=128, interpolate=True, depth=-20.0)