Skip to content

Instantly share code, notes, and snippets.

View samatjain's full-sized avatar

uıɐɾ ʞ ʇɐɯɐs samatjain

View GitHub Profile
@samatjain
samatjain / pyvenvex.py
Last active July 12, 2017 19:59 — forked from vsajip/pyvenvex.py
Set VIRTUAL_ENV, which appears to be needed on Ubuntu's Python for distribute/pip to install properly
#
# Copyright (C) 2013 Vinay Sajip. New BSD License.
#
import os
import os.path
from subprocess import Popen, PIPE
import sys
from threading import Thread
from urllib.parse import urlparse
from urllib.request import urlretrieve