<s> def climebox_usage ( ) : <EOL> clime . Program ( ) . printusage ( ) <EOL> def climebox_dirname ( file_name ) : <EOL> print ( os . path . dirname ( file_name ) ) <EOL> def climebox_false ( ) : <EOL> exit ( <NUM_LIT:1> ) <EOL> def climebox_pwd ( ) : <EOL> print ( os . getcwd ( ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> import clime <EOL> import sys , os <EOL> import inspect <EOL> execname = os . path . basename ( sys . argv [ <NUM_LIT:0> ] ) <EOL> if execname == '<STR_LIT>' or execname == '<STR_LIT>' : <EOL> clime . Program ( defcmdname = '<STR_LIT>' ) . main ( ) <EOL> exit ( <NUM_LIT:0> ) <EOL> import __main__ <EOL> for cmdname in clime . Program ( ) . cmdfs . keys ( ) : <EOL> attr = getattr ( __main__ , cmdname ) <EOL> cmdname = '<STR_LIT>' + execname <EOL> if cmdname == attr . func_name : <EOL> clime . Program ( defcmdname = cmdname , progname = execname ) . main ( ) </s>
