(cls)
| 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): |
nothing calls this directly
no test coverage detected