[Digicool-CVS] CVS: CVSROOT - postcommit_actions:1.124

Ken Manheimer klm@digicool.com
Mon, 6 Aug 2001 13:55:40 -0400


Update of /cvs-repository/CVSROOT
In directory cvs.zope.org:/tmp/cvs-serv3635

Modified Files:
	postcommit_actions 
Log Message:
Make chdir go to SCRIPT_DIR, for (1) a valid working directory, (2)
where the other traffic table are.


=== CVSROOT/postcommit_actions 1.123 => 1.124 ===
 
 import sys, os, tempfile, time, pwd
+SCRIPT_DIR = os.path.abspath(os.path.split(sys.argv[0])[0])
+os.chdir(SCRIPT_DIR)                # Valid dir, having other local scripts.
 import string
 import getopt
 import smtplib
@@ -57,8 +59,6 @@
 LDAP_PORT = 389
 LDAP_HOST = "10.0.11.6"
 OFFICIAL_SENDER = "cvs-admin@cvs.zope.org"
-
-os.chdir('/tmp')                        # So we have a valid working directory.
 
 CUSTOM_TRAFFIC_TABLE = "%s/custom_traffic_table.py" % CVSROOT