def main(): parser = argparse.ArgumentParser( description="Find the locations of a file in the environment's paths." ) parser.add_argument("filename", type=str, help="The filename to be found") args = parser.parse_args() for result in where.iwhere(args.filename): print(result)
def main(): parser = argparse.ArgumentParser( description="Find the locations of a file in the environment's paths") parser.add_argument('filename', type=str, help='The filename to be found') args = parser.parse_args() for result in where.iwhere(args.filename): print(result)
def test_where_iwhere_executes(): import where where.iwhere("python")
def test_where_iwhere_executes(): where.iwhere("python")