Not directly user callable The thread that gets a package version and returns it. Uses a Python progrm it creates and runs as a subprocess to get the value to return :param interpreter: The interpreter to use to check. If none specified, then the currently running interpreter is us
(interpreter, package, window, key)
| 24666 | |
| 24667 | |
| 24668 | def __get_ver_thread(interpreter, package, window, key): |
| 24669 | """ |
| 24670 | Not directly user callable |
| 24671 | The thread that gets a package version and returns it. Uses a Python progrm it creates and runs as a subprocess to get the value to return |
| 24672 | :param interpreter: The interpreter to use to check. If none specified, then the currently running interpreter is used |
| 24673 | :type interpreter: str |
| 24674 | :param package: The name of the package to get version of |
| 24675 | :type package: str |
| 24676 | :param window: Optional Window. If provided, the operation is run as a thread and the results passed to the window as an event |
| 24677 | :type window: (Window) |
| 24678 | :param key: key that will be sent to Window when operation completes |
| 24679 | :type key: str | int | tuple | object | None |
| 24680 | :return: |
| 24681 | """ |
| 24682 | ver = __get_ver_pre_38(interpreter, package) |
| 24683 | if not ver: |
| 24684 | ver = __get_ver_38_later(interpreter, package) |
| 24685 | if ver == ' ': |
| 24686 | ver = '' |
| 24687 | if window: |
| 24688 | window.write_event_value(key, ver) |
| 24689 | return None |
| 24690 | else: |
| 24691 | return ver if ver != ' ' else '' |
| 24692 | |
| 24693 | def __get_ver_pre_38(interpreter, package): |
| 24694 | """ |
no test coverage detected