Data is now in ~/ccoop/
[ccoop.git] / ccoop-atomize.py
index c9bb64c7cb9543c6e4303e549cc982ae36ade2ca..11c79fcb4617361b7699237d9696ab57a8d22a14 100755 (executable)
@@ -6,7 +6,7 @@ account=sys.argv[1]
 name=sys.argv[2]
 balance=sys.argv[3]
 
-lines = file(account+".csv").readlines()
+lines = file(op.path.join(os.getenv("CCPATH"), +account+".csv")).readlines()
 nlines = len(lines)
 
 print '<?xml version="1.0" encoding="UTF-8"?>'