]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
GNUmakefile: detect trial's location better on Windows
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 27 Apr 2007 00:49:01 +0000 (17:49 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 27 Apr 2007 00:49:01 +0000 (17:49 -0700)
GNUmakefile

index 8207c021d7cab9a4f72e46b1ddc32a6d75983270..ac197feeadda44ea76f9262f8c17bb469f75990f 100644 (file)
@@ -6,7 +6,13 @@ INSTDIR=$(BASE)/instdir
 PATHSEP=$(shell python -c 'import os ; print os.pathsep')
 TRIALPATH=$(shell which trial.py 2>/dev/null)
 ifeq ($(TRIALPATH),)
-TRIALPATH=$(shell which trial)
+TRIALPATH=$(shell which trial 2>/dev/null)
+endif
+ifeq ($(TRIALPATH),)
+TRIALPATH=$(shell $(PYTHON) -c "import os, sys; print repr(os.path.join(sys.prefix, \"Scripts\", \"trial.py\"))")
+endif
+ifeq ($(TRIALPATH),)
+TRIALPATH=$(shell $(PYTHON) -c "import os, sys; print repr(os.path.join(sys.prefix, \"Scripts\", \"trial\"))")
 endif
 
 EXTRA_SETUP_ARGS=
@@ -36,7 +42,6 @@ PYTHONPATH := "$(INSTDIR)"
 endif
 
 TRIAL=$(PYTHON) -u "$(TRIALPATH)" --reactor=$(REACTOR)
-# $(error $(TRIAL))
 
 show-instdir:
        @echo $(INSTDIR)