Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
setuptools
/
_vendor
/
autocommand
/
__pycache__
[ HOME ]
Exec
Submit
automain.cpython-311.pyc
� �� h � �F � d dl Z ddlmZ G d� dee� � Zddd�d�ZdS ) � N� )�AutocommandErrorc � � e Zd ZdS )�AutomainRequiresModuleErrorN)�__name__� __module__�__qualname__� � �x/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/setuptools/_vendor/autocommand/automain.pyr r s � � � � � ��Dr r r )�args�kwargsc �t ��� t | � � rt | � � �| dk s| du r��i ���fd�}|S d� S )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 �<