Python PyQt5 模块,__file__() 实例源码

我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用PyQt5.__file__()

项目:recordium    作者:facundobatista    | 项目源码 | 文件源码
def fix_environment():
    """Add enviroment variable on Windows systems."""
    if platform.system() == "Windows":
        pyqt = os.path.dirname(pyqt_path)
        qt_platform_plugins_path = os.path.join(pyqt, "plugins")
        os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = qt_platform_plugins_path


# the text to show in the About window