diff options
| author | Christian Tismer <tismer@stackless.com> | 2021-01-21 19:06:38 +0100 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2021-02-06 18:20:16 +0100 |
| commit | 1e501c49bfa0832fd4a36903bc88a20f88565cf7 (patch) | |
| tree | 243a6acb644385371c5fe4c38f3ea84139811e40 /sources/pyside6/tests/registry/init_platform.py | |
| parent | 408ccdeccf82d114656a3f85d5fe80a5e3dd3c69 (diff) | |
move "shiboken6/shiboken6" to "shiboken6/Shiboken"
Modifying the paths to work in the new way is a quite ambitious
task. But doing so improves the overall project structure and
makes imports unambiguous.
This patch should not be applied alone but with
move "shiboken6/shiboken6" to "shiboken6/Shiboken" temp
The reworked version of this patch no longer has different
structures in `build` and `install`.
Tested with
Python 3.6, 3.7, 3.8, 3.9 debug build
Python 3.6 debug install
Python 3.9 release install
Task-number: PYSIDE-1497
Change-Id: Id9d816dd825907f9359651e7e2f69f54e1ba46c9
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/tests/registry/init_platform.py')
| -rw-r--r-- | sources/pyside6/tests/registry/init_platform.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sources/pyside6/tests/registry/init_platform.py b/sources/pyside6/tests/registry/init_platform.py index 90a7a21a8..bab75272b 100644 --- a/sources/pyside6/tests/registry/init_platform.py +++ b/sources/pyside6/tests/registry/init_platform.py @@ -120,8 +120,6 @@ def set_ospaths(build_dir): os.environ[ospath_var] = ospath set_ospaths(all_build_dir) -sys.path[:0] = [os.path.join(shiboken_build_dir, "shibokenmodule"), - pyside_build_dir] import PySide6 @@ -134,9 +132,7 @@ import testbinding all_modules.append("testbinding") # Note: This is not the shiboken dir as usual, but the binary. -import shiboken6 as Shiboken -Shiboken.__name__ = "Shiboken" -sys.modules["Shiboken"] = sys.modules.pop("shiboken6") +from shiboken6 import Shiboken all_modules.append("Shiboken") # 'sample/smart' are needed by 'other', so import them first. |
