drap 0.0.3.post9__py3-none-any.whl → 0.0.3.post10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- drap/qt_adjust.py +17 -10
- {drap-0.0.3.post9.dist-info → drap-0.0.3.post10.dist-info}/METADATA +2 -2
- drap-0.0.3.post10.dist-info/RECORD +13 -0
- drap-0.0.3.post9.dist-info/RECORD +0 -13
- {drap-0.0.3.post9.dist-info → drap-0.0.3.post10.dist-info}/WHEEL +0 -0
- {drap-0.0.3.post9.dist-info → drap-0.0.3.post10.dist-info}/entry_points.txt +0 -0
- {drap-0.0.3.post9.dist-info → drap-0.0.3.post10.dist-info}/licenses/LICENSE +0 -0
- {drap-0.0.3.post9.dist-info → drap-0.0.3.post10.dist-info}/top_level.txt +0 -0
drap/qt_adjust.py
CHANGED
@@ -1,27 +1,34 @@
|
|
1
|
-
|
2
|
-
import os
|
3
|
-
from PyQt5.QtCore import QLibraryInfo, QCoreApplication
|
4
|
-
|
1
|
+
import os, sys
|
5
2
|
from typing import Optional
|
3
|
+
from PyQt5.QtCore import QLibraryInfo, QCoreApplication
|
6
4
|
|
7
5
|
def fix_qt_plugin_paths(prefer_platform: Optional[str] = None) -> None:
|
8
|
-
|
6
|
+
# Limpa variáveis que atrapalham
|
9
7
|
os.environ.pop("QT_QPA_PLATFORM_PLUGIN_PATH", None)
|
10
8
|
os.environ.pop("QT_PLUGIN_PATH", None)
|
11
9
|
|
10
|
+
# Escolhe plataforma correta por SO
|
12
11
|
if prefer_platform:
|
13
|
-
|
12
|
+
platform = prefer_platform
|
14
13
|
else:
|
15
|
-
|
14
|
+
if sys.platform.startswith("win"): # Windows
|
15
|
+
platform = "windows"
|
16
|
+
elif sys.platform == "darwin": # macOS
|
17
|
+
platform = "cocoa"
|
18
|
+
else: # Linux/BSD
|
19
|
+
# xcb (X11) ou wayland – escolha a que seu público usa mais
|
20
|
+
platform = "xcb"
|
16
21
|
|
22
|
+
os.environ["QT_QPA_PLATFORM"] = platform
|
17
23
|
|
24
|
+
# Remova caminhos herdados ruins
|
18
25
|
for p in list(QCoreApplication.libraryPaths()):
|
19
|
-
if "cv2/qt/plugins" in p:
|
26
|
+
if "cv2/qt/plugins" in p.replace("\\", "/"):
|
20
27
|
QCoreApplication.removeLibraryPath(p)
|
21
28
|
|
29
|
+
# Garanta os plugins do PyQt5
|
30
|
+
QCoreApplication.addLibraryPath(QLibraryInfo.location(QLibraryInfo.PluginsPath))
|
22
31
|
|
23
|
-
pyqt_plugins = QLibraryInfo.location(QLibraryInfo.PluginsPath)
|
24
|
-
QCoreApplication.addLibraryPath(pyqt_plugins)
|
25
32
|
|
26
33
|
def assert_not_using_cv2_plugins() -> None:
|
27
34
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: drap
|
3
|
-
Version: 0.0.3.
|
3
|
+
Version: 0.0.3.post10
|
4
4
|
Summary: Tool for analyzing droplet size and concentration using video and EDF images
|
5
5
|
Author-email: "Gabriel Braga Marques Teobaldo, Oleg Prymak, Natalie Wolff, Matthias Epple, Marco Aurélio Brizzotti Andrade, Cássio Alves and Cristiano Luis Pinto de Oliveira" <alves.casssio@gmail.com>
|
6
6
|
License: MIT
|
@@ -36,7 +36,7 @@ Install:
|
|
36
36
|
|
37
37
|
python -m venv venv
|
38
38
|
|
39
|
-
source venv/bin/activate
|
39
|
+
source venv/bin/activate (Linux) or venv\Scripts\activate (windows)
|
40
40
|
|
41
41
|
pip install drap
|
42
42
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
drap/__init__.py,sha256=RF05F-NDoYmyOjQ1EgdKSfsx2tTYCheTpL0AYrFmdI0,47
|
2
|
+
drap/automation.py,sha256=TvCwFeYgrKxc50kaQkV2ETGyD1RhxCCX5oCGMWo2JjU,1294
|
3
|
+
drap/gui.py,sha256=LzBBQwFiF6IcOZfBkWB6wnKsBKD-v-6Un8VoJMG7eKU,1553
|
4
|
+
drap/main.py,sha256=IBMQp932Qd6aBSeWCoQH2MQhMtmEU_yZKOsUO_U9Wmk,1201
|
5
|
+
drap/qt_adjust.py,sha256=Ru99Qz_5bqxwDNGxREQnF17BZ0Nda0eeuQvH2-w98S8,1317
|
6
|
+
drap/terminal_interface.py,sha256=vCnobMdtxKvCUaFsu0fWmChd65a-Osn41LdMtSdMdO4,2201
|
7
|
+
drap/utils.py,sha256=-vUtbswvbBbEScvs-tnYzUhQvI4M22sDwXTvzxJAiII,66888
|
8
|
+
drap-0.0.3.post10.dist-info/licenses/LICENSE,sha256=iHcEhVN-5ifqXsDa1Ny38sIBS7SJ9-eYJQRtHiJ3QU0,1098
|
9
|
+
drap-0.0.3.post10.dist-info/METADATA,sha256=CKSpln5quwGq-84mp-zNIB9NkR6JuX8Vd_pnbXUAUEI,1436
|
10
|
+
drap-0.0.3.post10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
drap-0.0.3.post10.dist-info/entry_points.txt,sha256=8AnGrT_RVCkh26SYRqjRTbstT4BMuOO68qRFqPfPr8M,69
|
12
|
+
drap-0.0.3.post10.dist-info/top_level.txt,sha256=jYMnBoijRdvPMYoMlILxlRNbSdKUX3_uwMa7DLRE4zE,5
|
13
|
+
drap-0.0.3.post10.dist-info/RECORD,,
|
@@ -1,13 +0,0 @@
|
|
1
|
-
drap/__init__.py,sha256=RF05F-NDoYmyOjQ1EgdKSfsx2tTYCheTpL0AYrFmdI0,47
|
2
|
-
drap/automation.py,sha256=TvCwFeYgrKxc50kaQkV2ETGyD1RhxCCX5oCGMWo2JjU,1294
|
3
|
-
drap/gui.py,sha256=LzBBQwFiF6IcOZfBkWB6wnKsBKD-v-6Un8VoJMG7eKU,1553
|
4
|
-
drap/main.py,sha256=IBMQp932Qd6aBSeWCoQH2MQhMtmEU_yZKOsUO_U9Wmk,1201
|
5
|
-
drap/qt_adjust.py,sha256=7zw5aVwP7svwHMLl9Vj5N9zqwmVrv61S3ipjRJLNoAk,907
|
6
|
-
drap/terminal_interface.py,sha256=vCnobMdtxKvCUaFsu0fWmChd65a-Osn41LdMtSdMdO4,2201
|
7
|
-
drap/utils.py,sha256=-vUtbswvbBbEScvs-tnYzUhQvI4M22sDwXTvzxJAiII,66888
|
8
|
-
drap-0.0.3.post9.dist-info/licenses/LICENSE,sha256=iHcEhVN-5ifqXsDa1Ny38sIBS7SJ9-eYJQRtHiJ3QU0,1098
|
9
|
-
drap-0.0.3.post9.dist-info/METADATA,sha256=1TotPhZgS7SWpVT_eVzWSP4J_rCHoUZfayFwAdy0dbk,1392
|
10
|
-
drap-0.0.3.post9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
-
drap-0.0.3.post9.dist-info/entry_points.txt,sha256=8AnGrT_RVCkh26SYRqjRTbstT4BMuOO68qRFqPfPr8M,69
|
12
|
-
drap-0.0.3.post9.dist-info/top_level.txt,sha256=jYMnBoijRdvPMYoMlILxlRNbSdKUX3_uwMa7DLRE4zE,5
|
13
|
-
drap-0.0.3.post9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|