MCPcopy Index your code
hub / github.com/pyload/pyload / find

Method find

module/plugins/internal/SevenZip.py:38–56  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

36
37 @classmethod
38 def find(cls):
39 try:
40 if os.name == "nt":
41 cls.CMD = os.path.join(pypath, "7z.exe")
42
43 p = Popen([cls.CMD],
44 stdout=subprocess.PIPE,
45 stderr=subprocess.PIPE)
46 out, err = (_r.strip() if _r else "" for _r in p.communicate())
47
48 except OSError:
49 return False
50
51 else:
52 m = cls._RE_VERSION.search(out)
53 if m is not None:
54 cls.VERSION = m.group(1)
55
56 return True
57
58 @classmethod
59 def ismultipart(cls, filename):

Callers

nothing calls this directly

Calls 4

PopenClass · 0.85
joinMethod · 0.80
communicateMethod · 0.80
searchMethod · 0.45

Tested by

no test coverage detected