mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
* Expose INVALID_HANDLE_VALUE as mobase.INVALID_HANDLE_VALUE. * Add tests for startApplication() returning INVALID_HANDLE_VALUE. * Clean tests and generate stub files for them.
16 lines
333 B
Python
16 lines
333 B
Python
import os
|
|
import sys
|
|
from pathlib import Path
|
|
from typing import cast
|
|
|
|
|
|
def pytest_configure():
|
|
global app
|
|
|
|
os.add_dll_directory(str(Path(cast(str, os.getenv("QT_ROOT"))).joinpath("bin")))
|
|
os.add_dll_directory(str(os.getenv("UIBASE_PATH")))
|
|
|
|
from PyQt6.QtWidgets import QApplication
|
|
|
|
app = QApplication(sys.argv)
|