Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
82bd75c1
Commit
82bd75c1
authored
Mar 18, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update env-setup script to make it work better
parent
f1c8fc63
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
hacking/env-setup
+12
-13
No files found.
hacking/env-setup
View file @
82bd75c1
# -*- mode: shell-script -*-
PREFIX_PYTHONPATH="`pwd`/lib"
PREFIX_PATH="`pwd`/bin"
PREFIX_MANPATH="`pwd`/docs/man"
PREFIX_ANS_LIBRARY="`pwd`/library"
#!/bin/bash
# usage: source ./hacking/env-setup
# modifies environment for running Ansible from checkout
echo "Prefixing PYTHONPATH with $PREFIX_PYTHONPATH
"
export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
PREFIX_PYTHONPATH
=
"
$PWD
/lib
"
PREFIX_PATH
=
"
$PWD
/bin"
e
cho "Prefixing PATH with $PREFIX_PATH"
e
xport
PYTHONPATH
=
$PREFIX_PYTHONPATH
:
$PYTHONPATH
export
PATH
=
$PREFIX_PATH
:
$PATH
e
cho $PATH
e
xport
ANSIBLE_LIBRARY
=
"
$PWD
/library"
echo "Prefixing MANPATH with $PREFIX_MANPATH"
export MANPATH=$PREFIX_MANPATH:$MANPATH
echo
"PATH=
$PATH
"
echo
"PYTHONPATH=
$PYTHONPATH
"
echo
"ANSIBLE_LIBRARY=
$ANSIBLE_LIBRARY
"
echo "
Setting ANSIBLE_LIBRARY to ${PREFIX_ANS_LIBRARY}
"
e
xport ANSIBLE_LIBRARY=${PREFIX_ANS_LIBRARY}
echo
"
reminder: specify your host file with -i
"
e
cho
"done."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment