<s> from __future__ import print_function <EOL> import sys <EOL> import os <EOL> import argparse <EOL> def _find ( s = None , root = None ) : <EOL> if not os . path . isdir ( root ) : <EOL> print ( '<STR_LIT>' ) <EOL> return <EOL> l = os . listdir ( root ) <EOL> for x in l : <EOL> newroot = root + x + '<STR_LIT:/>' <EOL> fulls = os . path . abspath ( newroot ) <EOL> if os . path . isdir ( newroot ) : <EOL> _find ( s = s , root = newroot ) <EOL> if x == s : <EOL> print ( fulls ) <EOL> def main ( argv ) : <EOL> parser = argparse . ArgumentParser ( ) <EOL> parser . add_argument ( '<STR_LIT>' , nargs = argparse . REMAINDER ) <EOL> argv = parser . parse_args ( ) <EOL> if len ( argv . files ) < <NUM_LIT:2> : <EOL> print ( '<STR_LIT>' ) <EOL> return <EOL> _find ( s = argv . files [ - <NUM_LIT:1> ] , root = argv . files [ <NUM_LIT:0> ] ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( sys . argv ) </s>
