Bug 673940: Don't accidentally overwrite the environment's PYTHONPATH. r=ted

This commit is contained in:
Kyle Huey 2011-07-25 10:20:43 -07:00
parent c4c33c7ccf
commit e29d01fd7b
4 changed files with 6 additions and 6 deletions

View File

@ -164,10 +164,10 @@ SLEEP ?= sleep
TOUCH ?= touch
ifndef .PYMAKE
PYTHONPATH = $(PYTHON) $(topsrcdir)/config/pythonpath.py
PYTHON_PATH = $(PYTHON) $(topsrcdir)/config/pythonpath.py
else
PYCOMMANDPATH += $(topsrcdir)/config
PYTHONPATH = %pythonpath main
PYTHON_PATH = %pythonpath main
endif
# determine debug-related options

View File

@ -1537,7 +1537,7 @@ XPIDL_DEPS = \
$(XPIDL_GEN_DIR)/%.h: %.idl $(XPIDL_DEPS) $(XPIDL_GEN_DIR)/.done
$(REPORT_BUILD)
$(PYTHONPATH) \
$(PYTHON_PATH) \
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
$(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(topsrcdir)/xpcom/idl-parser $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp -o $@

View File

@ -164,10 +164,10 @@ SLEEP ?= sleep
TOUCH ?= touch
ifndef .PYMAKE
PYTHONPATH = $(PYTHON) $(topsrcdir)/config/pythonpath.py
PYTHON_PATH = $(PYTHON) $(topsrcdir)/config/pythonpath.py
else
PYCOMMANDPATH += $(topsrcdir)/config
PYTHONPATH = %pythonpath main
PYTHON_PATH = %pythonpath main
endif
# determine debug-related options

View File

@ -1537,7 +1537,7 @@ XPIDL_DEPS = \
$(XPIDL_GEN_DIR)/%.h: %.idl $(XPIDL_DEPS) $(XPIDL_GEN_DIR)/.done
$(REPORT_BUILD)
$(PYTHONPATH) \
$(PYTHON_PATH) \
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
$(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(topsrcdir)/xpcom/idl-parser $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp -o $@