Guest User

Untitled

a guest
May 26th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. try:
  2. if True in [z.endswith('.xml') for z in os.listdir(k)]:
  3. datasetdictionary[k]['notes'] = 'xmls-already-onmichprod'
  4. except:
  5. try:
  6. if True in [z.endswith('.xml') for z in os.listdir(alt)]:
  7. datasetdictionary[k]['notes'] = 'xmls-already-on-michprod in' + ' ' + alt
  8. elif not True in [z.endswith('.xml') for z in os.listdir(alt)]:
  9. datasetdictionary[k]['notes'] = 'xmls-needed-from-retro'
  10. except:
  11. datasetdictionary[k]['notes'] = 'dataset not found under any known alias on michprod'
Add Comment
Please, Sign In to add comment