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
3035f2dc
Commit
3035f2dc
authored
Aug 15, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8367 from msabramo/make_pip_install_editable_work
Make `pip install -e` work
parents
54cbe3dc
44b9f5e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
bin/ansible-playbook
+8
-0
lib/ansible/constants.py
+8
-0
No files found.
bin/ansible-playbook
View file @
3035f2dc
...
...
@@ -25,6 +25,14 @@ import sys
import
os
import
stat
# Augment PYTHONPATH to find Python modules relative to this file path
# This is so that we can find the modules when running from a local checkout
# installed as editable with `pip install -e ...` or `python setup.py develop`
local_module_path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'lib'
)
)
sys
.
path
.
append
(
local_module_path
)
import
ansible.playbook
import
ansible.constants
as
C
import
ansible.utils.template
...
...
lib/ansible/constants.py
View file @
3035f2dc
...
...
@@ -94,6 +94,14 @@ if getattr(sys, "real_prefix", None):
else
:
DIST_MODULE_PATH
=
'/usr/share/ansible/'
# Look for modules relative to this file path
# This is so that we can find the modules when running from a local checkout
# installed as editable with `pip install -e ...` or `python setup.py develop`
local_module_path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'..'
,
'library'
)
)
DIST_MODULE_PATH
=
os
.
pathsep
.
join
([
DIST_MODULE_PATH
,
local_module_path
])
# check all of these extensions when looking for yaml files for things like
# group variables -- really anything we can load
YAML_FILENAME_EXTENSIONS
=
[
""
,
".yml"
,
".yaml"
,
".json"
]
...
...
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