\bgFddlZddlmZGddeeZddddZdS) N)AutocommandErrorceZdZdS)AutomainRequiresModuleErrorN)__name__ __module__ __qualname__x/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/setuptools/_vendor/autocommand/automain.pyrrsDr rr )argskwargsctt|rt||dks|dur ifd}|SdS)a This decorator automatically invokes a function if the module is being run as the "__main__" module. Optionally, provide args or kwargs with which to call the function. If `module` is "__main__", the function is called, and the program is `sys.exit`ed with the return value. You can also pass `True` to cause the function to be called unconditionally. If the function is not called, it is returned unchanged by the decorator. Usage: @automain(__name__) # Pass __name__ to check __name__=="__main__" def main(): ... If __name__ is "__main__" here, the main function is called, and then sys.exit called with the return value. __main__TNc<tj|idSN)sysexit)mainr rs r automain_decoratorz$automain..automain_decorator6s( HTT4*6** + + + + +r c|Srr )rs r zautomain..;sDr )callabler)moduler rrs `` r automainrsp(2)&111 v~~ >F , , , , , ,"!   r )rerrorsr TypeErrorrrr r r rsy$ $$$$$$     "2I    !!!!!!!!!!!!!!r