I read recently that there was an advent calendar written for perl programmers, and I thought that would be a great thing to have for Thimbl. I found that my command-line utils weren't very easy to use for posts spanning mutliple lines. Thimbl needed a method to post a file. So I added one, and made it available at the repo.
Now, each day, I edit a text file called advent.txt, containing the graphics I want to display. I have a little python script called advent.py which reads the file, and posts it. Here's my advent.py script:
import sys
sys.path.append('repos/Thimbl-CLI')
import thimbl
d = thimbl.Data()
d.post_file('advent.txt')
Very simple.
No comments:
Post a Comment