Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
def test_where_iwhere_executes():
    import where
    where.iwhere("python")
Пример #4
0
def test_where_iwhere_executes():
    where.iwhere("python")