]>
crepu.dev Git - config.git/blob - djavu-asus/emacs/elpy/rpc-venv/lib/python3.11/site-packages/setuptools/launch.py
0208fdf33b640cd9791359d74673bb90cfb87f96
2 Launch the Python script on the command line after
3 setuptools is bootstrapped via import.
6 # Note that setuptools gets imported implicitly by the
7 # invocation of this script using python -m setuptools.launch
15 Run the script in sys.argv[1] as if it had
16 been invoked naturally.
19 script_name
= sys
.argv
[1]
25 sys
.argv
[:] = sys
.argv
[1:]
27 open_
= getattr(tokenize
, 'open', open)
28 with
open_(script_name
) as fid
:
30 norm_script
= script
.replace('\\r\\n', '\\n')
31 code
= compile(norm_script
, script_name
, 'exec')
35 if __name__
== '__main__':