-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathset_paths.sh
executable file
·24 lines (20 loc) · 937 Bytes
/
set_paths.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash -x
# Shell script to update the following environment variables
#
# SUGGESTBOT_DIR: is set to the current directory
# PYTHONPATH: adds ./libs and ./config
# PYWIKIBOT2_DIR: is set to Morten's pywikibot path
# NLTK_DATA is set to nltk_data underneath the current directory
# PYTHON_EXECUTABLE is set to whichever Python version we currently
# prefer to run. It's here to make sure we actually have access to
# all the necessary modules (like MySQLdb) until we get around to
# having an account with them all to ourselves.
scriptdir=`pwd`;
export PYWIKIBOT_DIR=$HOME/.pywikibot;
# export PYWIKIPEDIA_DIR='/export/scratch/morten/work/SuggestBot/pywikipedia';
export SUGGESTBOT_DIR=$scriptdir;
# export PYTHONPATH=$SUGGESTBOT_DIR
export NLTK_DATA=$scriptdir/nltk_data
# Load SuggestBot's own virtual environment
# source /export/scratch/morten/sbotenv/bin/activate
export PYTHON_EXECUTABLE=$HOME/venv/suggestbot/bin/python;