This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets | |
def main(): | |
print( | |
f"PyQt5 version: {QtCore.PYQT_VERSION_STR}, Qt version: {QtCore.QT_VERSION_STR}" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function getOS() | |
local raw_os_name, raw_arch_name = '', '' | |
-- LuaJIT shortcut | |
if jit and jit.os and jit.arch then | |
raw_os_name = jit.os | |
raw_arch_name = jit.arch | |
else | |
-- is popen supported? | |
local popen_status, popen_result = pcall(io.popen, "") |