我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用PyQt5.__file__()。
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