Updated todo module to agnostic user path

This commit is contained in:
Michael Skelton 2017-06-16 16:52:01 +10:00
parent 250c0135e6
commit 66ecf73760

View file

@ -33,7 +33,7 @@ class Module(bumblebee.engine.Module):
def count_items(filename): def count_items(filename):
try: try:
i=-1 i=-1
with open('/home/codingo/Documents/todo.txt') as f: with open('~/Documents/todo.txt') as f:
for i, l in enumerate(f): for i, l in enumerate(f):
pass pass
return i+1 return i+1