Buckets:
MisterAI/LocalAI_Demo_backends / cpu-diffusers /venv /lib /python3.10 /site-packages /setuptools /launch.py
| """ | |
| Launch the Python script on the command line after | |
| setuptools is bootstrapped via import. | |
| """ | |
| # Note that setuptools gets imported implicitly by the | |
| # invocation of this script using python -m setuptools.launch | |
| import sys | |
| import tokenize | |
| def run() -> None: | |
| """ | |
| Run the script in sys.argv[1] as if it had | |
| been invoked naturally. | |
| """ | |
| __builtins__ # noqa: B018 # evaluated to trigger validation/side effect | |
| script_name = sys.argv[1] | |
| namespace = dict( | |
| __file__=script_name, | |
| __name__='__main__', | |
| __doc__=None, | |
| ) | |
| sys.argv[:] = sys.argv[1:] | |
| open_ = getattr(tokenize, 'open', open) | |
| with open_(script_name) as fid: | |
| script = fid.read() | |
| norm_script = script.replace('\\r\\n', '\\n') | |
| code = compile(norm_script, script_name, 'exec') | |
| exec(code, namespace) # noqa: S102 # exec is intentional here | |
| if __name__ == '__main__': | |
| run() | |
Xet Storage Details
- Size:
- 921 Bytes
- Xet hash:
- 1a4722f95ca5a3f232b82f091b80c9ac0605b8adef098f2d09a56c19bed1bc45
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.