GameSentenceMiner 2.0.1__py3-none-any.whl → 2.0.1.post2__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/configuration.py +7 -1
- {GameSentenceMiner-2.0.1.dist-info → GameSentenceMiner-2.0.1.post2.dist-info}/METADATA +2 -2
- {GameSentenceMiner-2.0.1.dist-info → GameSentenceMiner-2.0.1.post2.dist-info}/RECORD +6 -6
- {GameSentenceMiner-2.0.1.dist-info → GameSentenceMiner-2.0.1.post2.dist-info}/WHEEL +0 -0
- {GameSentenceMiner-2.0.1.dist-info → GameSentenceMiner-2.0.1.post2.dist-info}/entry_points.txt +0 -0
- {GameSentenceMiner-2.0.1.dist-info → GameSentenceMiner-2.0.1.post2.dist-info}/top_level.txt +0 -0
@@ -5,6 +5,7 @@ import shutil
|
|
5
5
|
from dataclasses import dataclass, field
|
6
6
|
from logging.handlers import RotatingFileHandler
|
7
7
|
from os.path import expanduser
|
8
|
+
from sys import platform
|
8
9
|
from typing import List, Dict
|
9
10
|
|
10
11
|
import toml
|
@@ -247,12 +248,17 @@ class Config:
|
|
247
248
|
def get_all_profile_names(self):
|
248
249
|
return list(self.configs.keys())
|
249
250
|
|
251
|
+
|
250
252
|
def get_app_directory():
|
251
|
-
|
253
|
+
if platform == 'win32': # Windows
|
254
|
+
appdata_dir = os.getenv('APPDATA')
|
255
|
+
else: # macOS and Linux
|
256
|
+
appdata_dir = os.path.expanduser('~/.config')
|
252
257
|
config_dir = os.path.join(appdata_dir, 'GameSentenceMiner')
|
253
258
|
os.makedirs(config_dir, exist_ok=True) # Create the directory if it doesn't exist
|
254
259
|
return config_dir
|
255
260
|
|
261
|
+
|
256
262
|
def get_log_path():
|
257
263
|
return os.path.join(get_app_directory(), 'gamesentenceminer.log')
|
258
264
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: GameSentenceMiner
|
3
|
-
Version: 2.0.1
|
3
|
+
Version: 2.0.1.post2
|
4
4
|
Summary: A tool for mining sentences from games.
|
5
5
|
Author-email: Beangate <bpwhelan95@gmail.com>
|
6
6
|
License: MIT License
|
@@ -40,7 +40,7 @@ Requires-Dist: pywin32
|
|
40
40
|
|
41
41
|
## WARNING
|
42
42
|
|
43
|
-
This project is in process of a major
|
43
|
+
This project is in process of a major overhaul, and this README will be updated soon with the new process.
|
44
44
|
|
45
45
|
---
|
46
46
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
GameSentenceMiner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
GameSentenceMiner/anki.py,sha256=3UT6K5PxzJMDoiXyOULrkeCoJ0KMq7JvBw6XhcLCirE,9114
|
3
3
|
GameSentenceMiner/config_gui.py,sha256=s03e8F2pEPj0iG31RxFqWGfm2GLb8JoGQR7QhCMFu3M,45581
|
4
|
-
GameSentenceMiner/configuration.py,sha256=
|
4
|
+
GameSentenceMiner/configuration.py,sha256=G3EGjCk2U4Ak9aRVU_nuLarCOy8fHyPfRp2hRVrwu9g,13983
|
5
5
|
GameSentenceMiner/ffmpeg.py,sha256=hdKimzkpAKsE-17qEAQg4uHy4-TtdFywYx48Skn9cPs,10418
|
6
6
|
GameSentenceMiner/gametext.py,sha256=GpR9P8h3GmmKH46Dw13kJPx66n3jGjFCiV8Fcrqn9E8,3999
|
7
7
|
GameSentenceMiner/gsm.py,sha256=Lnj59KHV4l5eEgffkswBlRCONgYB_Id3L0pTajUzsvI,14937
|
@@ -13,8 +13,8 @@ GameSentenceMiner/vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
13
13
|
GameSentenceMiner/vad/silero_trim.py,sha256=r7bZYEj-NUXGKgD2UIhLrbTPyq0rau97qGtrMZcRK4A,1517
|
14
14
|
GameSentenceMiner/vad/vosk_helper.py,sha256=lWmlGMhmg_0QoWeCHrXwz9wDKPqY37BckHCekGVtJUI,5794
|
15
15
|
GameSentenceMiner/vad/whisper_helper.py,sha256=9kmPeSs6jRcKSVxYY-vtyTcqVUDORR4q1nl8fqxHHn4,3379
|
16
|
-
GameSentenceMiner-2.0.1.dist-info/METADATA,sha256=
|
17
|
-
GameSentenceMiner-2.0.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
18
|
-
GameSentenceMiner-2.0.1.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
19
|
-
GameSentenceMiner-2.0.1.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
20
|
-
GameSentenceMiner-2.0.1.dist-info/RECORD,,
|
16
|
+
GameSentenceMiner-2.0.1.post2.dist-info/METADATA,sha256=Hs8Xypb_1o0HKl74PXczECS9uAUE0N3w6xsa5H2a2Ts,13541
|
17
|
+
GameSentenceMiner-2.0.1.post2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
18
|
+
GameSentenceMiner-2.0.1.post2.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
19
|
+
GameSentenceMiner-2.0.1.post2.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
20
|
+
GameSentenceMiner-2.0.1.post2.dist-info/RECORD,,
|
File without changes
|
{GameSentenceMiner-2.0.1.dist-info → GameSentenceMiner-2.0.1.post2.dist-info}/entry_points.txt
RENAMED
File without changes
|
File without changes
|