]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix path to requests library
authorCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 06:43:58 +0000 (14:43 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 06:43:58 +0000 (14:43 +0800)
script/lib/github.py

index 5e968d6698b60b64868fc6bcf11bd50fbaa60582..def7be585e8a01a57982390881337354ba0827bc 100644 (file)
@@ -5,9 +5,10 @@ import os
 import re
 import sys
 
-sys.path.append(os.path.abspath(os.path.join(__file__, '..', '..', '..',
-                                             'vendor', 'requests', 'build',
-                                             'lib')))
+REQUESTS_DIR = os.path.abspath(os.path.join(__file__, '..', '..', '..',
+                                            'vendor', 'requests'))
+sys.path.append(os.path.join(REQUESTS_DIR, 'build', 'lib'))
+sys.path.append(os.path.join(REQUESTS_DIR, 'build', 'lib.linux-x86_64-2.7'))
 import requests
 
 GITHUB_URL = 'https://api.github.com'