MCPcopy Index your code
hub / github.com/RustPython/RustPython / run_script

Method run_script

Lib/modulefinder.py:154–158  ·  view source on GitHub ↗
(self, pathname)

Source from the content-addressed store, hash-verified

152 self.msg(*args)
153
154 def run_script(self, pathname):
155 self.msg(2, "run_script", pathname)
156 with io.open_code(pathname) as fp:
157 stuff = ("", "rb", _PY_SOURCE)
158 self.load_module('__main__', fp, pathname, stuff)
159
160 def load_file(self, pathname):
161 dir, name = os.path.split(pathname)

Callers 1

testFunction · 0.95

Calls 2

msgMethod · 0.95
load_moduleMethod · 0.95

Tested by

no test coverage detected