Merge branch 'da/maint-python-startup' into maint
* da/maint-python-startup: Makefile: Remove usage of deprecated Python "has_key" method
This commit is contained in:
commit
dd0c5133c6
5
Makefile
5
Makefile
@ -1560,9 +1560,8 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)): % : %.py
|
|||||||
-e '}' \
|
-e '}' \
|
||||||
-e 's|^import sys.*|&; \\\
|
-e 's|^import sys.*|&; \\\
|
||||||
import os; \\\
|
import os; \\\
|
||||||
sys.path[0] = os.environ.has_key("GITPYTHONLIB") and \\\
|
sys.path.insert(0, os.getenv("GITPYTHONLIB",\
|
||||||
os.environ["GITPYTHONLIB"] or \\\
|
"@@INSTLIBDIR@@"));|' \
|
||||||
"@@INSTLIBDIR@@"|' \
|
|
||||||
-e 's|@@INSTLIBDIR@@|'"$$INSTLIBDIR"'|g' \
|
-e 's|@@INSTLIBDIR@@|'"$$INSTLIBDIR"'|g' \
|
||||||
$@.py >$@+ && \
|
$@.py >$@+ && \
|
||||||
chmod +x $@+ && \
|
chmod +x $@+ && \
|
||||||
|
Loading…
Reference in New Issue
Block a user