if is_String(path):
path = string.split(path, os.pathsep)
if pathext is None:
- pathext = os.environ['PATHEXT']
+ try:
+ pathext = os.environ['PATHEXT']
+ except KeyError:
+ pathext = '.COM;.EXE;.BAT;.CMD'
if is_String(pathext):
pathext = string.split(pathext, os.pathsep)
for ext in pathext:
test.up_to_date(chdir = 'work1', options = opts, arguments = ".")
-test.write(['work1', 'bbb.c'], """
+test.write(['work1', 'bbb.c'], r"""
void
bbb(void)
{
#
test.up_to_date(chdir = 'work2', options = opts, arguments = ".")
-test.write(['work2', 'bbb.c'], """
+test.write(['work2', 'bbb.c'], r"""
void
bbb(void)
{
test.up_to_date(chdir = 'work', arguments = ".")
#
-test.write(['work', 'bbb.c'], """
+test.write(['work', 'bbb.c'], r"""
void
bbb(void)
{