예제 #1
0
파일: __main__.py 프로젝트: hweickert/where
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")