Commit c2e09d71 authored by sim's avatar sim

[ADMIN] Add gargantext project dir to virtualenv python paths

parent cc83ffd3
# Make this a standalone script...
# Can be called this way: python3 gargantext/tools/
import sys
import os
import django
sys.path.append(os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + '/../..'))
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gargantext.settings')
......@@ -54,6 +54,7 @@ update-locale LC_ALL=fr_FR.UTF-8
cd /srv/
pip3 install virtualenv
virtualenv /srv/env_3-5 -p /usr/bin/python3.5
echo '/srv/gargantext' > /srv/env_3-5/lib/python3.5/site-packages/gargantext.pth
echo 'alias venv="source /srv/env_3-5/bin/activate"' >> ~/.bashrc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment