Files
modorganizer-plugin_python/tests/python/conftest.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
333 B
Python
Raw Normal View History

2022-04-29 21:11:59 +02:00
import os
2022-04-29 22:23:57 +02:00
import sys
2022-04-29 21:11:59 +02:00
from pathlib import Path
from typing import cast
2022-04-29 21:11:59 +02:00
def pytest_configure():
2022-04-29 22:23:57 +02:00
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")))
2022-04-29 22:23:57 +02:00
from PyQt6.QtWidgets import QApplication
app = QApplication(sys.argv)