Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias alias alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr CompareEq AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad TupleLoad Str Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd Call AttributeLoad NameLoad attr Str NameLoad CompareEq AttributeLoad NameLoad attr Str body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse If UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad orelse If Call NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str BinOpMod Str Call AttributeLoad NameLoad attr Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If CompareNotEq NameLoad Str body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpMod AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return BinOpMod AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BoolOpAnd AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body Assign NameStore BinOpAdd BinOpAdd NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Assign NameStore BinOpMod Str NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Continue Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Str orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Raise Assign NameStore NameLoad orelse Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str If NameLoad body Assign NameStore NameLoad Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Num Str If UnaryOpNot NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn Str NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body FunctionDef arguments args NameParam NameParam defaults body If CompareEq Call AttributeLoad NameLoad attr Str Num body Assign NameStore Str orelse Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num Assign NameStore AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A io BytesIO N/A logging N/A os N/A re N/A struct N/A sys compat sysconfig fsencode detect_encoding ZipFile resources finder util FileOperator get_export_entry convert_path get_executable in_venv N/A logger N/A N/A logging getLogger __name__ N/A _DEFAULT_MANIFEST N/A N/A 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
 <assemblyIdentity version="1.0.0.0"
 processorArchitecture="X86"
 name="%s"
 type="win32"/>

 <!-- Identify the application security requirements. -->
 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
 <security>
 <requestedPrivileges>
 <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
 </requestedPrivileges>
 </security>
 </trustInfo>
</assembly> strip N/A FIRST_LINE_RE N/A N/A re compile ^#!.*pythonw?[0-9.]*([ 	].*)?$ N/A SCRIPT_TEMPLATE # -*- coding: utf-8 -*-
if __name__ == '__main__':
    import sys, re

    def _resolve(module, func):
        __import__(module)
        mod = sys.modules[module]
        parts = func.split('.')
        result = getattr(mod, parts.pop(0))
        for p in parts:
            result = getattr(result, p)
        return result

    try:
        sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

        func = _resolve('%(module)s', '%(func)s')
        rc = func() # None interpreted as 0
    except Exception as e:  # only supporting Python >= 2.6
        sys.stderr.write('%%s\n' %% e)
        rc = 1
    sys.exit(rc)
 ScriptMaker N/A object N/A N/A 
    A class to copy or create scripts from source scripts or callable
    specifications.
     N/A script_template SCRIPT_TEMPLATE N/A executable None __init__ N/A N/A self source_dir target_dir add_launchers dry_run fileop N/A True False None N/A N/A N/A self source_dir source_dir N/A N/A self target_dir target_dir N/A N/A self add_launchers add_launchers N/A N/A self force False N/A N/A self clobber False N/A N/A self set_mode N/A N/A os name posix N/A N/A self variants N/A set N/A X.Y N/A N/A self _fileop N/A fileop N/A FileOperator dry_run N/A _get_alternate_executable N/A N/A self executable options N/A N/A N/A N/A N/A N/A options get gui False N/A N/A os name nt N/A N/A N/A dn fn N/A N/A N/A os path split executable N/A fn N/A N/A fn replace python pythonw N/A executable N/A N/A N/A os path join dn fn N/A executable N/A _get_shebang N/A N/A self encoding post_interp options N/A None N/A N/A N/A self executable N/A N/A executable N/A self executable N/A N/A N/A N/A N/A sysconfig is_python_build N/A N/A executable N/A get_executable N/A N/A N/A in_venv N/A N/A executable N/A N/A N/A os path join N/A N/A sysconfig get_path scripts N/A python%s N/A N/A sysconfig get_config_var EXE N/A N/A executable N/A N/A N/A os path join N/A N/A sysconfig get_config_var BINDIR N/A python%s%s N/A N/A N/A sysconfig get_config_var VERSION N/A N/A sysconfig get_config_var EXE N/A options N/A N/A executable N/A N/A self _get_alternate_executable executable options N/A executable N/A fsencode executable N/A shebang N/A N/A N/A #! executable post_interp N/A N/A N/A N/A N/A shebang decode utf-8 N/A N/A N/A UnicodeDecodeError N/A N/A N/A ValueError N/A The shebang (%r) is not decodable from utf-8 shebang N/A N/A encoding utf-8 N/A N/A N/A N/A N/A N/A shebang decode encoding N/A N/A N/A UnicodeDecodeError N/A N/A N/A ValueError N/A The shebang (%r) is not decodable from the script encoding (%r) N/A shebang encoding N/A shebang N/A _get_script_text N/A N/A self entry N/A N/A N/A N/A N/A self script_template N/A dict module N/A entry prefix func N/A entry suffix N/A N/A manifest _DEFAULT_MANIFEST get_manifest N/A N/A self exename N/A N/A N/A base N/A N/A N/A os path basename exename N/A N/A N/A self manifest base N/A _write_script N/A N/A self names shebang script_bytes filenames ext N/A N/A N/A use_launcher N/A N/A self add_launchers N/A N/A os name nt N/A linesep N/A N/A N/A os linesep encode utf-8 N/A N/A use_launcher N/A N/A script_bytes N/A N/A shebang linesep script_bytes N/A N/A N/A ext py N/A N/A launcher N/A N/A self _get_launcher t N/A N/A launcher N/A N/A self _get_launcher w N/A stream N/A BytesIO N/A N/A ZipFile stream w zf N/A N/A N/A N/A zf writestr __main__.py script_bytes N/A zip_data N/A N/A stream getvalue N/A script_bytes N/A N/A N/A launcher shebang linesep zip_data N/A name names N/A N/A outname N/A N/A N/A os path join N/A self target_dir name N/A use_launcher N/A N/A N/A n e N/A N/A N/A os path splitext outname N/A N/A N/A e startswith .py N/A N/A outname n N/A outname N/A %s.exe outname N/A N/A N/A N/A N/A N/A self _fileop write_binary_file outname script_bytes N/A N/A N/A Exception N/A N/A N/A N/A logger warning Failed to write executable - trying to use .deleteme logic N/A dfname N/A %s.deleteme outname N/A N/A N/A N/A os path exists dfname N/A N/A N/A N/A os remove dfname N/A N/A N/A os rename outname dfname N/A N/A N/A N/A self _fileop write_binary_file outname script_bytes N/A N/A N/A logger debug Able to replace executable using .deleteme logic N/A N/A N/A N/A N/A os remove dfname N/A N/A N/A Exception N/A N/A N/A N/A N/A N/A N/A os name nt N/A N/A N/A outname endswith N/A . ext N/A N/A outname N/A %s.%s N/A outname ext N/A N/A N/A N/A N/A os path exists outname N/A N/A self clobber N/A N/A N/A N/A logger warning Skipping existing file %s outname N/A N/A N/A N/A N/A self _fileop write_binary_file outname script_bytes N/A N/A self set_mode N/A N/A N/A N/A N/A self _fileop set_executable_mode N/A outname N/A N/A N/A filenames append outname N/A _make_script N/A N/A self entry filenames options N/A None N/A N/A shebang N/A N/A self _get_shebang utf-8 options options N/A script N/A N/A N/A N/A self _get_script_text entry encode utf-8 N/A name N/A entry name N/A scriptnames N/A set N/A N/A N/A self variants N/A N/A N/A N/A scriptnames add name N/A N/A X N/A self variants N/A N/A N/A N/A scriptnames add N/A %s%s N/A name N/A N/A sys version N/A 0 N/A N/A X.Y N/A self variants N/A N/A N/A N/A scriptnames add N/A %s-%s N/A name N/A N/A sys version N/A 3 N/A N/A options N/A N/A options get gui False N/A N/A ext pyw N/A N/A ext py N/A N/A N/A self _write_script scriptnames shebang script filenames ext N/A _copy_script N/A N/A self script filenames N/A N/A N/A adjust False N/A script N/A N/A N/A os path join N/A self source_dir N/A convert_path script N/A outname N/A N/A N/A os path join N/A self target_dir N/A N/A N/A os path basename script N/A N/A N/A N/A self force N/A N/A N/A N/A self _fileop newer script outname N/A N/A N/A N/A logger debug not copying %s (up-to-date) script N/A N/A N/A N/A f N/A open script rb N/A N/A N/A IOError N/A N/A N/A N/A self dry_run N/A N/A N/A f None N/A N/A N/A encoding lines N/A detect_encoding N/A f readline N/A N/A N/A f seek 0 N/A first_line N/A N/A f readline N/A N/A first_line N/A N/A N/A N/A logger warning %s: %s is an empty file (skipping) N/A N/A self get_command_name script N/A N/A match N/A N/A FIRST_LINE_RE match N/A N/A first_line replace N/A match N/A N/A adjust True N/A post_interp N/A N/A N/A match group 1 N/A N/A adjust N/A N/A f N/A N/A N/A N/A f close N/A N/A N/A N/A self _fileop copy_file script outname N/A N/A self set_mode N/A N/A N/A N/A N/A self _fileop set_executable_mode N/A outname N/A N/A N/A filenames append outname N/A N/A N/A N/A logger info copying and adjusting %s -> %s script N/A self target_dir N/A N/A N/A N/A self _fileop dry_run N/A N/A shebang N/A N/A self _get_shebang encoding post_interp N/A N/A pythonw first_line N/A N/A ext pyw N/A N/A ext py N/A n N/A N/A N/A os path basename outname N/A N/A N/A self _write_script N/A n shebang N/A N/A f read filenames ext N/A f N/A N/A N/A N/A f close N/A dry_run N/A N/A self N/A N/A N/A N/A N/A self _fileop dry_run N/A property dry_run N/A N/A self value N/A N/A N/A N/A N/A self _fileop dry_run value N/A N/A dry_run setter N/A N/A N/A os name nt N/A _get_launcher N/A N/A self kind N/A N/A N/A N/A N/A N/A struct calcsize P 8 N/A N/A bits 64 N/A N/A bits 32 N/A name N/A %s%s.exe N/A kind bits N/A distlib_package N/A N/A N/A __name__ rsplit . 1 N/A 0 N/A result N/A N/A N/A N/A finder distlib_package find name bytes N/A result N/A make N/A N/A self specification options N/A None N/A N/A 
        Make a script.

        :param specification: The specification, which is either a valid export
                              entry specification (to make a script from a
                              callable) or a filename (to make a script by
                              copying from a source location).
        :param options: A dictionary of options controlling script generation.
        :return: A list of all absolute pathnames written to.
         N/A filenames N/A N/A entry N/A get_export_entry specification N/A N/A entry None N/A N/A N/A N/A self _copy_script specification filenames N/A N/A N/A N/A self _make_script entry filenames options options N/A filenames N/A make_multiple N/A N/A self specifications options N/A None N/A N/A 
        Take a list of specifications and make scripts from them,
        :param specifications: A list of specifications.
        :return: A list of all absolute pathnames written to,
         N/A filenames N/A N/A specification specifications N/A N/A N/A N/A filenames extend N/A N/A self make specification options N/A filenames N/A N/A