from ppu_tu import setup, teardown, find_in_path # noqa
-tmp_dir = None
-
test_prog_path = find_in_path('which.py')
-if not test_prog_path:
- sys.exit("Cannot find which.py in %s" % os.environ["PATH"])
+
+if sys.platform == 'win32':
+ os_env_pathext = os.environ['PATHEXT']
+ pathext = os_env_pathext.lower().split(os.pathsep)
+ if '.py' not in pathext:
+ os_env_pathext += ';.py'
+ os.environ['PATHEXT'] = os_env_pathext
def test_which():