changeset 66:31a11febd751

spawn_django: add eco compatibility.
author Augie Fackler <durin42@gmail.com>
date Mon, 30 Mar 2009 11:14:58 -0500
parents 5c25d3dc29ab
children 9f8bd97da0d4
files .shell.d/50.misc_functions.zsh
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.shell.d/50.misc_functions.zsh
+++ b/.shell.d/50.misc_functions.zsh
@@ -27,5 +27,9 @@ function django_settings_set() {
 
 # run a django app in spawn
 function spawn_django() {
-   spawn --factory=spawning.django_factory.config_factory $@
+    if [ -e ./eco/bin/spawn ] ; then
+        eco/bin/spawn --factory=spawning.django_factory.config_factory $@
+    else
+        spawn --factory=spawning.django_factory.config_factory $@
+    fi
 }