Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. from ij import IJ, ImagePlus
  2. from java.lang import Runtime, Runnable
  3.  
  4. import os
  5.  
  6. filepaths = []
  7.  
  8. for folder, subs, files in os.walk('location/of/files/'):
  9. for filename in files:
  10. #the next part stops it appending DS files
  11. if not filename.startswith('.'):
  12. filepaths.append(os.path.abspath(os.path.join(folder, filename,)))
  13.  
  14. for i in filepaths:
  15. IJ.open(i);
  16. IJ.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement