Autodetect version of Python being executed

This commit is contained in:
Roberto Rosario
2012-06-03 04:40:27 -04:00
parent c4e3c1a65e
commit 57f2fe3d4a

View File

@@ -1,11 +1,11 @@
import os
import sys
import site
import platform
sys.stdout = sys.stderr
#TODO fix properly
ve_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'lib/python2.7/site-packages')) # Change python 2.6 to the python version you are using
ve_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'lib/python%s/site-packages' % platform.python_version()[:3]))
# Add the virtual Python environment site-packages directory to the path
site.addsitedir(ve_path)