Commits

windwiny committed 2a64144

show config detail msg

Comments (0)

Files changed (1)

         for ex in cls.cs.fetchall():
             i += 1
             print '%4d exclude -> %s' % (i, ex[0])
+        print '----------' * 6
 
     @staticmethod
     def cygpath(p, conv=True):
             return
         if not G.cygpath(l, False): return
         if not G.cygpath(r, False): return
-        if '-d' in sys.argv:
-            print '%s "%s" "%s"' % (G._pg_GUIDIFF, l, r)
-        else:
-            subprocess.Popen('%s "%s" "%s"' % (G._pg_GUIDIFF, l, r))
+        print '%s "%s" "%s"' % (G._pg_GUIDIFF, l, r)
+        subprocess.Popen('%s "%s" "%s"' % (G._pg_GUIDIFF, l, r))
 
     @staticmethod
     def runsync(l, r, parent=None):
 
     def initcfg(self):
         G.initfromfile()
-        if '-v' in sys.argv:
-            G.showall()
+        G.showall()
 
     def OnBtnSwitchButton(self, event):
         t1 = self.txtSRC.GetValue()
         t2 = self.txtDST.GetValue()
         self.txtSRC.SetValue(t2)
         self.txtDST.SetValue(t1)
-        G.initfromfile()
-        if '-v' in sys.argv:
-            G.showall()
+        self.initcfg()
 
     def OnBtnGetDirsButton(self, event):
         fn = fn1 = fn2 = ''
             self.txtDST.SetValue(fn2)
             self.btnCompare.Enable()
             self.btnRsync.Enable()
-            print ' file: %s | %s | %s' % (fn.encode(G.str_encode),
+            print ' parse file: %s ( %s -> %s )' % (fn.encode(G.str_encode),
                 fn1.encode(G.str_encode), fn2.encode(G.str_encode))
         else:
             self.btnCompare.Disable()
             self.btnRsync.Disable()
-            print ' not file: %s | %s | %s' % (fn.encode(G.str_encode),
+            print ' CAN NOT parse: %s ( %s -> %s )' % (fn.encode(G.str_encode),
                 fn1.encode(G.str_encode), fn2.encode(G.str_encode))
 
     def OnBtnCompareButton(self, event):