+for path in os.environ["PATH"].split(os.pathsep):
+ path = path.strip('"')
+ test_prog_path = os.path.join(path, 'remove-old-files.py')
+ if os.path.exists(test_prog_path):
+ break
+else:
+ sys.exit("Cannot find remove-old-files.py in %s" % os.environ["PATH"])