Advertisement
lswest

To Do.py

Jul 8th, 2011
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import os
  3.  
  4. home=os.path.expanduser("~")
  5.  
  6. for root, dirs, files in os.walk(os.path.join(home,"Reminders")):
  7.     for infile in [f for f in files]:
  8.         if(infile.endswith("~")!=True):
  9.             fh=open(os.path.abspath(os.path.join(root,infile)))
  10.             for line in fh:
  11.                 print "- "+line,
  12.             fh.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement