]> localhost Git - gists.git/commitdiff
Add message for successful magstripe file write
authormisomosi <[email protected]>
Mon, 3 Aug 2026 17:41:52 +0000 (13:41 -0400)
committermisomosi <[email protected]>
Mon, 3 Aug 2026 17:41:52 +0000 (13:41 -0400)
MSR605X/mxser.py

index b99a7da7694eaeb9f3b47e40632bba5b80d12d4c..d037f4259dea11c20389b0fc5cc5de56deaabce1 100644 (file)
@@ -64,9 +64,11 @@ def main(argv):
     T1 = f'%B{PAN}^{NAME}^{EXP}{SVC}^^^?'
     T2 = f';{PAN}={EXP}{SVC}===?'
     T3 = '+?'
-    with open(args.FILE, 'w') as fp:
+    FILE = args.FILE
+    with open(FILE, 'w') as fp:
         datestr = TODAY.strftime('%Y.%m.%d    %H:%M:%S')
         fp.write('\n'.join([datestr, T1, T2, T3, '', '']))
+        print(f'Magstripe track file "{FILE}" written!')
 
     return 0