<s> from __future__ import print_function <EOL> """<STR_LIT>""" <EOL> import locale <EOL> import os <EOL> import sys <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) <EOL> func_name = sys . argv [ <NUM_LIT:1> ] <EOL> try : <EOL> import easygui_qt <EOL> func = getattr ( easygui_qt , func_name ) <EOL> except : <EOL> try : <EOL> from easygui_qt import easygui_qt <EOL> func = getattr ( easygui_qt , func_name ) <EOL> except : <EOL> print ( "<STR_LIT>" . format ( func_name ) ) <EOL> sys . exit ( ) <EOL> if len ( sys . argv ) > <NUM_LIT:2> : <EOL> args = tuple ( [ sys . argv [ i ] for i in range ( <NUM_LIT:2> , len ( sys . argv ) ) ] ) <EOL> result = func ( * args ) <EOL> else : <EOL> result = func ( ) <EOL> if sys . version_info < ( <NUM_LIT:3> , ) : <EOL> try : <EOL> res = bytearray ( result , encoding = locale . getdefaultlocale ( ) [ <NUM_LIT:1> ] ) <EOL> result = res <EOL> except : <EOL> pass <EOL> print ( result , end = '<STR_LIT>' ) </s>
