def _version(): from rez.package_py_utils import exec_python return exec_python( "_version", ["from PyQt4.QtCore import QT_VERSION_STR", "print QT_VERSION_STR"])
def _version(): from rez.package_py_utils import exec_python return exec_python( "_version", ["import PySide", "print PySide.__version__"])
def _python_version(): from rez.package_py_utils import exec_python out = exec_python("_python_version", ["import sys", "print sys.version.split()[0]"], executable="rez-python") return out
def _site_paths(): from rez.package_py_utils import exec_python import ast out = exec_python("_site_paths", ["import site", "print site.getsitepackages()"]) return ast.literal_eval(out.strip())
def _python_version(): from rez.package_py_utils import exec_python out = exec_python("_python_version", [ "from __future__ import print_function", "import sys", "print(sys.version.split()[0])" ], executable="rez-python") return out
def _python_version(): from rez.package_py_utils import exec_python out = exec_python( "_python_version", ["import sys", "print sys.version.split()[0]"], executable="rez-python") return out
def _version(): from rez.package_py_utils import exec_python return exec_python("_version", ["import PySide", "print PySide.__version__"])
def _version(): from rez.package_py_utils import exec_python return exec_python("version", ["import sys", "print sys.version.split()[0]"])
def _bin_path(): from rez.package_py_utils import exec_python return exec_python( "_bin_path", ["import sys, os.path", "print os.path.dirname(sys.executable)"])