diff test.py @ 1:43ec211e2c59

Started the development of 1.21.0 Portability: '.' -> os.curdir.
author Oleg Oshmyan <chortos@inbox.lv>
date Fri, 22 Jan 2010 19:27:20 +0000
parents b9622c1e2197
children bddcc05aba59
line wrap: on
line diff
--- a/test.py	Fri Jan 22 18:20:10 2010 +0000
+++ b/test.py	Fri Jan 22 19:27:20 2010 +0000
@@ -19,7 +19,7 @@
 globals1 = set(globals())
 
 # Initialize some configuration variables with default values
-tasknames = ('.',)
+tasknames = (os.curdir,)
 maxtime = 0
 tests = ()
 dummies = ()
@@ -376,7 +376,7 @@
 	cwd = ''
 	if os.path.isdir(taskname):
 		os.chdir(taskname)
-		if taskname != '.':
+		if taskname != :
 			cwd = taskname + '/'
 		try:
 			execfile('testconf.py', globals())
@@ -429,7 +429,7 @@
 		if len(tasknames) > 1:
 			print taskname
 	except Exception:
-		if taskname != '.' or ntasks:
+		if taskname != os.curdir or ntasks:
 			print taskname
 	
 	try: del inname
@@ -439,8 +439,8 @@
 	try: del ansname
 	except NameError: pass
 	
-	if not namedefined and taskname != '.':
-		name = './' + taskname
+	if not namedefined and taskname != os.curdir:
+		name = os.path + os.sep + taskname
 	for k in shared:
 		g[k] = shared[k]