Permalink
Switch branches/tags
594/hotfix/my-turn-to-borrow 596/hotfix/exporting-lists 678/feature/star-ratings 731/hotfix/olid-writeback-to-ia 734/refactor/reading-log-cleanup 740/feature/public-reading-log 740/hotfix/reading-log-notifications 763/refactor/standardized-banner 799/feature/fundraising-banner 805/feature/v1-work-merge-workflow 844/hotfix/slow-work-pages-availability 993/feature/new-arrivals-carousel 1144/edition-merge-deadcode 1335/hotfix/diff-view-template Num170R-move_buy_section archive.org change_stream_to_details dev docker docs/docker feat/mobile feature/add-survey feature/author-edit-crosslink-remote-ids feature/author-experiment feature/beta feature/borrow-as-ia feature/centralize-routes feature/dev-banner-testing feature/edition-page-related-carousel feature/editions-works-availability-v2 feature/endpoint-documentation feature/fix-imagecount feature/ia-auth-only feature/library.link feature/list-search feature/loans-carousel feature/net-neutrality feature/survey feature/toc-search feature/track-star-ratings feature/waitlist-button footer hornc-patch-1 hotfix/account-waitlist hotfix/all-native-buttons hotfix/analytics hotfix/book-availability hotfix/books-we-love-english-only hotfix/borrow-check hotfix/borrow-redirects hotfix/borrow-regression-tests hotfix/bug-fixes-and-tweaks hotfix/carousel-bookcover-height hotfix/carousel-repair hotfix/dev-env-libffi hotfix/double-submit hotfix/editions-covers hotfix/fix-waitlist-bug hotfix/git-rev-hash hotfix/homepage-none-len-bug hotfix/ia-auth-messaging hotfix/importbot hotfix/io-xauth-borrow-flow hotfix/ipstats-chmod hotfix/lending hotfix/librarian-captcha-bypass hotfix/library-link-style hotfix/limit-api-calls-for-bots hotfix/loans-show-waitlist hotfix/openlibraries hotfix/reallow-ol-username-login hotfix/revert-bridge hotfix/rm-net-neutrality-widget hotfix/rm-ol-reset-password hotfix/s3-fallback-to-userpass hotfix/use-email-banner hotfix/user-email-banner-fix-redirect hotfix/user-settings hotfix/waitinglist-carousel hotfix/waitlist-num hotfix/work-availability hotfix/workless-editions-fix hotfix/08-04-downtime html5cat-css-add-sass-support i18n/french i18n/greek ia-auth-only live-borrow-status master production razzius-master refactor/availability refactor/beta refactor/canonical-books-step1 refactor/carousels refactor/enhanced-work refactor/make-ol-serious-again refactor/merge-read-borrow-databar refactor/mobile-footer refactor/mobile-home refactor/move-work-editions-standalone refactor/pep8 refactor/realtime-search-accuracy refactor/remove-unused-code refactor/search-readd-booksearch refactor/stats refactor/variable-font-families revert-411-refactor/ia-ol-auth revert-913-master revert-1117-master revert-1176-test_branch tabshaikh-patch-docstring-change tabshaikh-readme-patch updating-readme variable-font-families webpy-0.3 whatisgalen-698/feature/book-widget wldb
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 517 Bytes
#
# bash startup script to setup environment for OL
#
if [ -f ~/.bashrc ]
then
source ~/.bashrc
fi
gitroot=$(git rev-parse --show-toplevel)
pyenv=$(grep '^virtualenv' $gitroot/conf/install.ini | sed -e 's/.*= *//' )
pyenv=$(eval echo $pyenv) # expand ~ in the pyenv
export PATH=$gitroot/usr/local/bin:$PATH
export LD_LIBRARY_PATH=$gitroot/usr/local/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$gitroot/usr/local/lib:$DYLD_LIBRARY_PATH
export PYTHONPATH=$gitroot/conf:$PYTHONPATH
source $pyenv/bin/activate