Update of /cvsroot/webware/Webware/MiscUtils/Testing
In directory usw-pr-cvs1:/tmp/cvs-serv9351/Testing
Modified Files:
FixPath.py
Log Message:
- added progPath and progDir "utility" variables for use by test programs
Index: FixPath.py
===================================================================
RCS file: /cvsroot/webware/Webware/MiscUtils/Testing/FixPath.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FixPath.py 20 Dec 2001 20:00:40 -0000 1.1
--- FixPath.py 11 Nov 2002 02:14:42 -0000 1.2
***************
*** 12,13 ****
--- 12,16 ----
import os, sys
sys.path.insert(0, os.path.abspath(os.pardir))
+
+ progPath = os.path.normpath(os.path.join(os.getcwd(), sys.argv[0]))
+ progDir = os.path.dirname(progPath)
|