]> oss.titaniummirror.com Git - dispcfg.git/commitdiff
Separate output in log by a blank line
authorR. Steve McKown <rsmckown@gmail.com>
Sat, 24 Jan 2015 20:00:39 +0000 (13:00 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Sat, 24 Jan 2015 20:01:21 +0000 (13:01 -0700)
dispcfg

diff --git a/dispcfg b/dispcfg
index 02f1f8d1721cfd272f6efe57bb3fc2ae8423ef7f..f0cc4a275d1f22c87be69af65992ce530ad19369 100755 (executable)
--- a/dispcfg
+++ b/dispcfg
@@ -23,6 +23,10 @@ class record:
         self.of.write(data)
         sys.stdout.write(data)
 
+    def fout(self, line):
+        data = '%s\n' % line
+        self.of.write(data)
+
     def outTime(self, line):
         tstamp = datetime.datetime.fromtimestamp(time.time())
         data = '%s %s\n' % (tstamp.strftime('%Y-%m-%d %H:%M:%S'), line)
@@ -232,6 +236,7 @@ if __name__ == '__main__':
             subprocess.call('/usr/local/bin/setctrl')
 
         out.outTime('completed')
+        out.fout('')
 
 
     main(sys.argv)