Skip to content

Commit d569c34

Browse files
committed
Scale up qr.png and open it automatically.
1 parent 044dfe2 commit d569c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wxbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def gen_qr_code(self, qr_file_path):
578578
string = 'https://login.weixin.qq.com/l/' + self.uuid
579579
qr = pyqrcode.create(string)
580580
if self.conf['qr'] == 'png':
581-
qr.png(qr_file_path)
581+
qr.png(qr_file_path, scale=8)
582582
if sys.platform.find('darwin') >= 0:
583583
subprocess.call(['open', qr_file_path])
584584
elif sys.platform.find('linux') >= 0:

0 commit comments

Comments
 (0)