Browse Source

Fix path to requests library

Cheng Zhao 9 years ago
parent
commit
7288581393
1 changed files with 4 additions and 3 deletions
  1. 4 3
      script/lib/github.py

+ 4 - 3
script/lib/github.py

@@ -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'