summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-03-25 22:26:43 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-03-25 22:26:43 +0100
commit8ac8bd7be100ea481768b53bfd413a6ac23a7c60 (patch)
tree695d11a6f0da733ac8e7d592b36e2ffbf76e6f36
parent578bbc8f237d7913c5251e90e645efc64cc20b0d (diff)
Find the python modules even when building with internal python
-rw-r--r--translate_toolkit/makefile.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/translate_toolkit/makefile.mk b/translate_toolkit/makefile.mk
index 96cbffc..8a0560f 100644
--- a/translate_toolkit/makefile.mk
+++ b/translate_toolkit/makefile.mk
@@ -47,6 +47,14 @@ TARGET=trt
# --- Python paths --------------------------------------------------
+# watch for the path delimiter
+.IF "$(GUI)"=="WNT"
+PYTHONPATH:=$(PWD)$/$(BIN);$(SOLARLIBDIR);$(SOLARLIBDIR)$/python;$(SOLARLIBDIR)$/python$/lib-dynload
+.ELSE # "$(GUI)"=="WNT"
+PYTHONPATH:=$(PWD)$/$(BIN):$(SOLARLIBDIR):$(SOLARLIBDIR)$/python:$(SOLARLIBDIR)$/python$/lib-dynload
+.ENDIF # "$(GUI)"=="WNT"
+.EXPORT: PYTHONPATH
+
.IF "$(SYSTEM_PYTHON)"!="YES"
PY_CMD=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/$(PYTHON)
.ELSE # "$(SYSTEM_PYTHON)"!="YES"