I am able to execute the following, where it uses each member of the list to create a different path:
diagnoses = ['DS','FXS']
path = "Transcripts{dirsep}*{diagnosis}{dirsep}*.txt".format(dirsep=os.sep, diagnosis=diagnoses)
However, the following raises an error:
path = os.path.join('Transcripts',diagnoses,'*.txt')
Can I use os.path.join to get multiple paths?