Вопрос по python – Как мне добавить путь к PYTHONPATH в virtualenv

84

Error: User Rate Limit Exceeded

Error: User Rate Limit ExceededSET PYTHONPATH=...Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Ваш Ответ

5   ответов
139

Error: User Rate Limit ExceededError: User Rate Limit Exceeded.pth filesError: User Rate Limit Exceededlib\python2.7\site-packagesError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
4

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded
89

Error: User Rate Limit ExceededvirtualenvError: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit Exceeded

add2virtualenv directory1 directory2 …

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceededdocs.python.org/2/library/site.htmlError: User Rate Limit Exceeded
Error: User Rate Limit Exceededadd2virtualenvError: User Rate Limit Exceeded
Error: User Rate Limit Exceededadd2virtualenvError: User Rate Limit ExceededPYTHONPATHError: User Rate Limit Exceededbitbucket.org/virtualenvwrapper/virtualenvwrapper/src/…
0

Error: User Rate Limit Exceeded

$ cd to the parent folder
$ add2virtualenv  folder_to_add

Error: User Rate Limit Exceeded

Warning: Converting "folder_to_add" to "/absoutle/path/to/folder_to_add"

Error: User Rate Limit Exceeded

0
import sys
import os

print(str(sys.path))

dir_path = os.path.dirname(os.path.realpath(__file__))
print("current working dir: %s" dir_path)

sys.path.insert(0, dir_path)

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded

Похожие вопросы