Merge pull request #74 from mattvenn/master
authorClaire Wolf <clifford@clifford.at>
Thu, 2 Apr 2020 16:27:50 +0000 (18:27 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Apr 2020 16:27:50 +0000 (18:27 +0200)
add --init-config option

1  2 
sbysrc/sby.py

diff --cc sbysrc/sby.py
index 5d2873d9f132ec6eae295f8c22e9ff68fa63cba2,f17e8425a179243eb993fc6b56333632ca09d873..4bf354fc040d4a2088645c9012744a93481d23fb
@@@ -119,10 -143,9 +143,9 @@@ early_logmsgs = list(
  
  def early_log(workdir, msg):
      tm = localtime()
 -    early_logmsgs.append("SBY %2d:%02d:%02d [%s] %s" % (tm.tm_hour, tm.tm_min, tm.tm_sec, workdir, msg))
 +    early_logmsgs.append("SBY {:2d}:{:02d}:{:02d} [{}] {}".format(tm.tm_hour, tm.tm_min, tm.tm_sec, workdir, msg))
      print(early_logmsgs[-1])
  
  def read_sbyconfig(sbydata, taskname):
      cfgdata = list()
      tasklist = list()