From dd9908a83cec6f63f3c12ba959e291b35006ff02 Mon Sep 17 00:00:00 2001 From: sbilly Date: Mon, 22 Feb 2016 01:44:15 +0800 Subject: [PATCH] fix startfile() issue. Changes to be committed: modified: weixin.py --- weixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weixin.py b/weixin.py index ea1172c..0cf69c3 100755 --- a/weixin.py +++ b/weixin.py @@ -101,7 +101,7 @@ class WebWeixin(object): return False def genQRCode(self): - if sys.platform.find('win') >= 0: + if sys.platform.startswith('win'): self._showQRCodeImg() else: self._str2qr('https://login.weixin.qq.com/l/' + self.uuid)