Browse Source

Scale up qr.png and open it automatically.

liuwons 9 years ago
parent
commit
d569c34718
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wxbot.py

+ 1 - 1
wxbot.py

@@ -578,7 +578,7 @@ class WXBot:
         string = 'https://login.weixin.qq.com/l/' + self.uuid
         qr = pyqrcode.create(string)
         if self.conf['qr'] == 'png':
-            qr.png(qr_file_path)
+            qr.png(qr_file_path, scale=8)
             if sys.platform.find('darwin') >= 0:
                 subprocess.call(['open', qr_file_path])
             elif sys.platform.find('linux') >= 0: