From 7260888d18116d901fab8db77dec23aa2f54ccff Mon Sep 17 00:00:00 2001 From: terry Date: Mon, 22 Jun 1998 15:43:47 +0000 Subject: [PATCH] Don't hardcode the bonsai directory name. git-svn-id: svn://10.0.0.236/trunk@4220 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bonsai/handleAdminMail.tcl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bonsai/handleAdminMail.tcl b/mozilla/webtools/bonsai/handleAdminMail.tcl index 7658c2fa04f..e94130b87b8 100755 --- a/mozilla/webtools/bonsai/handleAdminMail.tcl +++ b/mozilla/webtools/bonsai/handleAdminMail.tcl @@ -18,8 +18,11 @@ # Netscape Communications Corporation. All Rights Reserved. -# cd /u/terry/warproot/projects/bonsai -cd /d/webdocs/projects/bonsai +if {[llength $argv] > 0} { + cd [lindex $argv 0] +} else { + cd [file dirname $argv0] +} set filename data/admin.[id process]