Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ get_interpreter
Function
get_interpreter
tools/python-3.11.9-amd64/Lib/zipapp.py:150–153 ·
view source on GitHub ↗
(archive)
Source
from the content-addressed store, hash-verified
148
149
150
def
get_interpreter(archive):
151
with
_maybe_open(archive,
'rb'
)
as
f:
152
if
f.read(2) == b
'#!'
:
153
return
f.readline().strip().decode(shebang_encoding)
154
155
156
def
main(args=None):
Callers
1
main
Function · 0.85
Calls
5
_maybe_open
Function · 0.85
strip
Method · 0.80
read
Method · 0.45
decode
Method · 0.45
readline
Method · 0.45
Tested by
no test coverage detected