MCPcopy
hub / github.com/mitmproxy/mitmproxy / push

Method push

mitmproxy/utils/data.py:15–22  ·  view source on GitHub ↗

Change the data object to a path relative to the module.

(self, subpath)

Source from the content-addressed store, hash-verified

13 self.dirname = os.path.abspath(dirname)
14
15 def push(self, subpath):
16 """
17 Change the data object to a path relative to the module.
18 """
19 dirname = os.path.normpath(os.path.join(self.dirname, subpath))
20 ret = Data(self.name)
21 ret.dirname = dirname
22 return ret
23
24 def path(self, path):
25 """

Callers 15

simple.jsFile · 0.45
data.pyFile · 0.45
elasticlunr.min.jsFile · 0.45
tFunction · 0.45
oFunction · 0.45
iFunction · 0.45
rFunction · 0.45
sFunction · 0.45
mixSpecIntoComponentFunction · 0.45
uFunction · 0.45

Calls 2

DataClass · 0.70
joinMethod · 0.45

Tested by

no test coverage detected