diff options
Diffstat (limited to 'sources/pyside6')
| -rw-r--r-- | sources/pyside6/PySide6/__init__.py.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside6/PySide6/__init__.py.in b/sources/pyside6/PySide6/__init__.py.in index d8439985d..8f6c47b87 100644 --- a/sources/pyside6/PySide6/__init__.py.in +++ b/sources/pyside6/PySide6/__init__.py.in @@ -123,7 +123,8 @@ def _find_all_qt_modules(): location = Path(__file__).resolve().parent # Note: We should _not_ call this function while still building, but use the existing value! - in_build = location.parents[1].name == "build" + in_build = Path("@CMAKE_BINARY_DIR@") in location.parents + if in_build: return __all__ |
