GameSentenceMiner 2.0.1__py3-none-any.whl → 2.0.1.post1__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.
@@ -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 platform 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
- appdata_dir = os.getenv('APPDATA') # Get the AppData directory
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.post1
4
4
  Summary: A tool for mining sentences from games.
5
5
  Author-email: Beangate <bpwhelan95@gmail.com>
6
6
  License: MIT License
@@ -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=7sXYNBNXyezPFbGKTu2XwjMAy6vQ1tJPfLg2aq2UGRA,13859
4
+ GameSentenceMiner/configuration.py,sha256=6DtBPbAqvAEFrRZFxIdnzb1kaJLLd5D29XJJyrLjgno,13988
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=1Do_9ICUOyK_eo89olnaBQhg-yHyLEDtyky8NXh4-_8,13534
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.post1.dist-info/METADATA,sha256=_xBUL_ZCFHf9JNbWA3G62p5slogTGPCQoJr60ebMZj4,13540
17
+ GameSentenceMiner-2.0.1.post1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
18
+ GameSentenceMiner-2.0.1.post1.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
19
+ GameSentenceMiner-2.0.1.post1.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
20
+ GameSentenceMiner-2.0.1.post1.dist-info/RECORD,,