Autodetect version of Python being executed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user