forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pavement.py
14 lines (12 loc) · 791 Bytes
/
pavement.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys # lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
import os
# Ensure that we can import pavelib, and that our copy of pavelib
# takes precedence over anything else installed in the virtualenv.
# In local dev, we usually don't need to do this, because Python
# automatically puts the current working directory on the system path.
# In Jenkins, however, we have multiple copies of the edx-platform repo,
# each of which run "pip install -e ." (as part of requirements/edx/local.in)
# Until we re-run pip install, the other copies of edx-platform could
# take precedence, leading to some very strange results.
sys.path.insert(0, os.path.dirname(__file__))
from pavelib import * # lint-amnesty, pylint: disable=wildcard-import, wrong-import-position