We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcfa6f4 commit 9c5de53Copy full SHA for 9c5de53
1 file changed
ietf/wsgi.py
@@ -42,6 +42,12 @@
42
import sys
43
44
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
45
+
46
+# Virtualenv support
47
+virtualenv_activation = os.path.join(path, "bin", "activate_this.py")
48
+if os.path.exists(virtualenv_activation):
49
+ execfile(virtualenv_activation, dict(__file__=virtualenv_activation))
50
51
if not path in sys.path:
52
sys.path.insert(0, path)
53
0 commit comments