GameSentenceMiner 2.8.43__py3-none-any.whl → 2.8.44__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.
- GameSentenceMiner/gsm.py +2 -0
- GameSentenceMiner/notification.py +5 -1
- GameSentenceMiner/util.py +3 -3
- {gamesentenceminer-2.8.43.dist-info → gamesentenceminer-2.8.44.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.8.43.dist-info → gamesentenceminer-2.8.44.dist-info}/RECORD +9 -9
- {gamesentenceminer-2.8.43.dist-info → gamesentenceminer-2.8.44.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.8.43.dist-info → gamesentenceminer-2.8.44.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.8.43.dist-info → gamesentenceminer-2.8.44.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.8.43.dist-info → gamesentenceminer-2.8.44.dist-info}/top_level.txt +0 -0
GameSentenceMiner/gsm.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import asyncio
|
2
|
+
import sys
|
2
3
|
|
3
4
|
from GameSentenceMiner.vad.result import VADResult
|
4
5
|
|
@@ -42,6 +43,7 @@ except Exception as e:
|
|
42
43
|
logger.info("Something bad happened during import/initialization, closing in 5 seconds")
|
43
44
|
logger.exception(e)
|
44
45
|
time.sleep(5)
|
46
|
+
sys.exit(1)
|
45
47
|
|
46
48
|
if is_windows():
|
47
49
|
import win32api
|
@@ -2,7 +2,11 @@ import platform
|
|
2
2
|
|
3
3
|
import requests
|
4
4
|
from plyer import notification
|
5
|
-
|
5
|
+
|
6
|
+
from GameSentenceMiner.util import is_windows
|
7
|
+
|
8
|
+
if is_windows():
|
9
|
+
from win10toast import ToastNotifier
|
6
10
|
|
7
11
|
from GameSentenceMiner.configuration import logger
|
8
12
|
|
GameSentenceMiner/util.py
CHANGED
@@ -11,7 +11,7 @@ from sys import platform
|
|
11
11
|
|
12
12
|
from rapidfuzz import process
|
13
13
|
|
14
|
-
from GameSentenceMiner.configuration import logger, get_config
|
14
|
+
from GameSentenceMiner.configuration import logger, get_config, get_app_directory
|
15
15
|
|
16
16
|
SCRIPTS_DIR = r"E:\Japanese Stuff\agent-v0.1.4-win32-x64\data\scripts"
|
17
17
|
|
@@ -254,8 +254,8 @@ def do_text_replacements(text, replacements_json):
|
|
254
254
|
return text
|
255
255
|
|
256
256
|
|
257
|
-
TEXT_REPLACEMENTS_FILE = os.path.join(
|
258
|
-
OCR_REPLACEMENTS_FILE = os.path.join(
|
257
|
+
TEXT_REPLACEMENTS_FILE = os.path.join(get_app_directory(), 'config', 'text_replacements.json')
|
258
|
+
OCR_REPLACEMENTS_FILE = os.path.join(get_app_directory(), 'config', 'ocr_replacements.json')
|
259
259
|
os.makedirs(os.path.dirname(TEXT_REPLACEMENTS_FILE), exist_ok=True)
|
260
260
|
|
261
261
|
import urllib.request
|
@@ -5,15 +5,15 @@ GameSentenceMiner/configuration.py,sha256=5XdL7ZBEouj6Rz8pHvWKyTmhdDNs5p6UkdNng5
|
|
5
5
|
GameSentenceMiner/electron_config.py,sha256=dGcPYCISPehXubYSzsDuI2Gl092MYK0u3bTnkL9Jh1Y,9787
|
6
6
|
GameSentenceMiner/ffmpeg.py,sha256=sf_Wz4ijFOYKRZI4qhRc32Y9E2zZuPscLv_VU8ZYCHU,18250
|
7
7
|
GameSentenceMiner/gametext.py,sha256=hcyZQ69B7xB5ZG85wLzM5au7ZPKxmeUXsmUD26oyk_0,5660
|
8
|
-
GameSentenceMiner/gsm.py,sha256=
|
8
|
+
GameSentenceMiner/gsm.py,sha256=dZt2Gnwqwj-i-yRpGJWBmCBRaBjEUCzi3L3P-gcVkfA,27266
|
9
9
|
GameSentenceMiner/model.py,sha256=1lRyJFf_LND_4O16h8CWVqDfosLgr0ZS6ufBZ3qJHpY,5699
|
10
|
-
GameSentenceMiner/notification.py,sha256=
|
10
|
+
GameSentenceMiner/notification.py,sha256=vNmtZw2K-2PnYI4inY5G9nLw8LZMjY97s5Y-E08OZqM,2878
|
11
11
|
GameSentenceMiner/obs.py,sha256=a-zLd7FrfI8fBiv5IfR-3pZYwqRJI_hUElzlZauaL40,14500
|
12
12
|
GameSentenceMiner/obs_back.py,sha256=_N_UV7Nh5cyy3mnH5lOUOzhgZwHMACeFEuBo1Z-bNzg,10894
|
13
13
|
GameSentenceMiner/package.py,sha256=YlS6QRMuVlm6mdXx0rlXv9_3erTGS21jaP3PNNWfAH0,1250
|
14
14
|
GameSentenceMiner/ss_selector.py,sha256=hS_p_7VljVkFDg_POsutLfXDv1hdF-NbVnQAW4X5qsQ,4441
|
15
15
|
GameSentenceMiner/text_log.py,sha256=MD7LB5D-v4G0Bnm3uGvZQ0aV38Fcj4E0vgq7mmyQ7_4,5157
|
16
|
-
GameSentenceMiner/util.py,sha256=
|
16
|
+
GameSentenceMiner/util.py,sha256=PrDNnxWiJZh1lGuwnp3DjWIlwbkVxweRTYWLtQk94Ao,9122
|
17
17
|
GameSentenceMiner/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
18
|
GameSentenceMiner/ai/ai_prompting.py,sha256=_uWvwOg2YROVZV3MOKlx2THvAmg07ScwVyvBCtPrUzs,9572
|
19
19
|
GameSentenceMiner/communication/__init__.py,sha256=_jGn9PJxtOAOPtJ2rI-Qu9hEHVZVpIvWlxKvqk91_zI,638
|
@@ -54,9 +54,9 @@ GameSentenceMiner/web/static/web-app-manifest-512x512.png,sha256=wyqgCWCrLEUxSRX
|
|
54
54
|
GameSentenceMiner/web/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
55
55
|
GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
|
56
56
|
GameSentenceMiner/web/templates/utility.html,sha256=P659ZU2j7tcbJ5xPO3p7E_SQpkp3CrrFtSvvXJNNuLI,16330
|
57
|
-
gamesentenceminer-2.8.
|
58
|
-
gamesentenceminer-2.8.
|
59
|
-
gamesentenceminer-2.8.
|
60
|
-
gamesentenceminer-2.8.
|
61
|
-
gamesentenceminer-2.8.
|
62
|
-
gamesentenceminer-2.8.
|
57
|
+
gamesentenceminer-2.8.44.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
58
|
+
gamesentenceminer-2.8.44.dist-info/METADATA,sha256=1MEsPlhCXRlSbYgaKoTTg9_EvknOUy-nIJIBr1NG-eg,7218
|
59
|
+
gamesentenceminer-2.8.44.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
60
|
+
gamesentenceminer-2.8.44.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
61
|
+
gamesentenceminer-2.8.44.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
62
|
+
gamesentenceminer-2.8.44.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|