Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv450

Modified Files:
        tmda-cgi.py tmda-cgi.c 
Log Message:
Added a base directory variable to locate TMDA relative to tmda-cgi.


Index: tmda-cgi.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/tmda-cgi.py,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- tmda-cgi.py 29 Mar 2003 22:46:28 -0000      1.1.1.1
+++ tmda-cgi.py 31 Mar 2003 02:24:53 -0000      1.2
@@ -49,11 +49,9 @@
 import os
 import pwd
 import Session
+import sys
 
-try:
-  import paths
-except ImportError:
-  pass
+sys.path.insert(0, os.environ["TMDA_BASE_DIR"])
 
 # Process any CGI fields
 Form = cgi.FieldStorage()

Index: tmda-cgi.c
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/tmda-cgi.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- tmda-cgi.c  29 Mar 2003 22:46:28 -0000      1.1.1.1
+++ tmda-cgi.c  31 Mar 2003 02:24:53 -0000      1.2
@@ -31,6 +31,7 @@
   putenv(MODE);
   putenv(USER);
   putenv(DISP_DIR);
+  putenv(BASE_DIR);
 
   if (!chdir(INSTALL))
   {

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs

Reply via email to