Skip to content

Commit ddfe314

Browse files
committed
ARK_Main_Config.yml to ark.yml
1 parent 72f982a commit ddfe314

20 files changed

Lines changed: 78 additions & 78 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ config.yaml
168168
config.toml
169169
user_preferences.json
170170
bcasl.yml
171-
ARK_Main_Config.yml
171+
ark.yml
172172
clean_venv_duplicates.py
173173
force_clean_venv_files.py
174174
Licence_Injector.py

Core/AdvancedConfigEditor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,8 @@ def _setup_tab_ark(self) -> None:
11011101
ws = self._workspace_dir()
11021102
self._build_tab(
11031103
"ark",
1104-
self.gui.tr("ARK_Main_Config.yml", "ARK_Main_Config.yml"),
1105-
lambda: os.path.join(ws, "ARK_Main_Config.yml") if ws else None,
1104+
self.gui.tr("ark.yml", "ark.yml"),
1105+
lambda: os.path.join(ws, "ark.yml") if ws else None,
11061106
True,
11071107
self.gui.tr("ARK Config", "ARK Config"),
11081108
)

Core/ArkConfigManager.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ARK configuration loading module
1818
1919
Ce module est responsable de:
20-
- Loadr la configuration depuis le file ARK_Main_Config.yml à la racine du workspace
20+
- Loadr la configuration depuis le file ark.yml à la racine du workspace
2121
- Gérer les patterns d'inclusion/exclusion de files
2222
- Fournir des fonctions utilitaires pour accéder aux options de configuration
2323
- Créer un file de configuration par défaut si nécessaire
@@ -77,7 +77,7 @@
7777
# CONFIGURATION PAR DÉFAUT
7878
# =============================================================================
7979
# Cette configuration est utilisée comme base lorsque aucun fichier
80-
# ARK_Main_Config.yml n'est trouvé dans le workspace. Elle peut être
80+
# ark.yml n'est trouvé dans le workspace. Elle peut être
8181
# partiellement ou entièrement surchargée par la configuration utilisateur.
8282

8383
DEFAULT_CONFIG = {
@@ -163,10 +163,10 @@ def load_ark_config(workspace_dir: str) -> dict[str, Any]:
163163
utilisateur avec les valeurs par défaut.
164164
165165
Fichiers recherchés (ordre de priorité):
166-
1. ARK_Main_Config.yaml
167-
2. ARK_Main_Config.yml
168-
3. .ARK_Main_Config.yaml
169-
4. .ARK_Main_Config.yml
166+
1. ark.yaml
167+
2. ark.yml
168+
3. .ark.yaml
169+
4. .ark.yml
170170
171171
Args:
172172
workspace_dir: Path absolu vers le directory du workspace
@@ -199,10 +199,10 @@ def load_ark_config(workspace_dir: str) -> dict[str, Any]:
199199

200200
# Liste des candidats fichiers de configuration par ordre de priorité
201201
config_candidates = [
202-
workspace_path / "ARK_Main_Config.yaml",
203-
workspace_path / "ARK_Main_Config.yml",
204-
workspace_path / ".ARK_Main_Config.yaml",
205-
workspace_path / ".ARK_Main_Config.yml",
202+
workspace_path / "ark.yaml",
203+
workspace_path / "ark.yml",
204+
workspace_path / ".ark.yaml",
205+
workspace_path / ".ark.yml",
206206
]
207207

208208
# Rechercher le premier fichier de configuration existant
@@ -326,7 +326,7 @@ def get_entrypoint(config: dict[str, Any]) -> Optional[str]:
326326

327327
def save_ark_config(workspace_dir: str, config: dict[str, Any]) -> bool:
328328
"""
329-
Save ARK configuration to ARK_Main_Config.yml.
329+
Save ARK configuration to ark.yml.
330330
331331
Args:
332332
workspace_dir: Path du workspace
@@ -339,7 +339,7 @@ def save_ark_config(workspace_dir: str, config: dict[str, Any]) -> bool:
339339
return False
340340
try:
341341
workspace_path = Path(workspace_dir)
342-
config_file = workspace_path / "ARK_Main_Config.yml"
342+
config_file = workspace_path / "ark.yml"
343343
with open(config_file, "w", encoding="utf-8") as f:
344344
yaml.safe_dump(
345345
config,
@@ -355,7 +355,7 @@ def save_ark_config(workspace_dir: str, config: dict[str, Any]) -> bool:
355355

356356
def set_entrypoint(workspace_dir: str, entrypoint: Optional[str]) -> bool:
357357
"""
358-
Update entry point in ARK_Main_Config.yml.
358+
Update entry point in ark.yml.
359359
360360
Args:
361361
workspace_dir: Path du workspace
@@ -481,7 +481,7 @@ def should_exclude_file(
481481

482482
def create_default_ark_config(workspace_dir: str) -> bool:
483483
"""
484-
Create ARK_Main_Config.yml with default configuration.
484+
Create ark.yml with default configuration.
485485
486486
Cette fonction génère un file de configuration complet avec
487487
toutes les options disponibles et leurs valeurs par défaut.
@@ -498,7 +498,7 @@ def create_default_ark_config(workspace_dir: str) -> bool:
498498
return False
499499

500500
workspace_path = Path(workspace_dir)
501-
config_file = workspace_path / "ARK_Main_Config.yml"
501+
config_file = workspace_path / "ark.yml"
502502

503503
# Ne pas écraser un fichier existant
504504
if config_file.exists():
@@ -583,7 +583,7 @@ def create_default_ark_config(workspace_dir: str) -> bool:
583583
log_with_level(
584584
None,
585585
"warning",
586-
f"Échec de la création de ARK_Main_Config.yml: {e}",
586+
f"Échec de la création de ark.yml: {e}",
587587
)
588588
except Exception:
589589
pass

Core/Compiler/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ def _start_compilation_queue(self, engine, files_to_compile: list) -> None:
571571
log_i18n_level(
572572
self,
573573
"info",
574-
f"{excluded_count} fichier(s) exclu(s) selon les patterns de ARK_Main_Config.yml",
575-
f"{excluded_count} file(s) excluded according to ARK_Main_Config.yml patterns",
574+
f"{excluded_count} fichier(s) exclu(s) selon les patterns de ark.yml",
575+
f"{excluded_count} file(s) excluded according to ark.yml patterns",
576576
)
577577

578578

Core/Gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def select_files_manually(self):
244244
WorkspaceAdvancedManipulation.select_files_manually(self)
245245

246246
def open_ark_config(self):
247-
"""Open `ARK_Main_Config.yml` from the current workspace."""
247+
"""Open `ark.yml` from the current workspace."""
248248
SetupWorkspace.open_ark_config(self)
249249

250250
def on_main_only_changed(self):

Core/UiFeatures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def _refresh_entrypoint_marker(self) -> None:
223223
item.setIcon(QIcon())
224224

225225
def load_entrypoint_from_config(self) -> None:
226-
"""Load workspace entrypoint from `ARK_Main_Config.yml`."""
226+
"""Load workspace entrypoint from `ark.yml`."""
227227
workspace_dir = getattr(self, "workspace_dir", None)
228228
if not workspace_dir:
229229
return

Core/Venv_Manager/Manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3424,13 +3424,13 @@ def _after_binding(ok_bind: bool):
34243424

34253425
if create_default_ark_config(workspace_dir):
34263426
self._safe_log(
3427-
"📋 Fichier ARK_Main_Config.yml créé dans le workspace.",
3428-
"📋 ARK_Main_Config.yml file created in workspace.",
3427+
"📋 Fichier ark.yml créé dans le workspace.",
3428+
"📋 ark.yml file created in workspace.",
34293429
)
34303430
except Exception as e:
34313431
self._safe_log(
3432-
f"⚠️ Impossible de créer ARK_Main_Config.yml: {e}",
3433-
f"⚠️ Failed to create ARK_Main_Config.yml: {e}",
3432+
f"⚠️ Impossible de créer ark.yml: {e}",
3433+
f"⚠️ Failed to create ark.yml: {e}",
34343434
)
34353435

34363436
return True

Core/WorkSpaceManager/SetupWorkspace.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def add_py_files_from_folder(gui_instance, folder: str) -> int:
352352
):
353353
continue
354354

355-
# Étape 3: appliquer les exclusions ARK_Main_Config.yml.
355+
# Étape 3: appliquer les exclusions ark.yml.
356356
if should_exclude_file(
357357
full_path, workspace_dir, exclusion_patterns
358358
):
@@ -379,8 +379,8 @@ def add_py_files_from_folder(gui_instance, folder: str) -> int:
379379
# Étape 4: journaliser le résumé d'exclusion.
380380
if excluded_count > 0:
381381
gui_instance.log_i18n(
382-
f"⏩ Exclusion appliquée : {excluded_count} fichier(s) exclu(s) selon ARK_Main_Config.yml",
383-
f"⏩ Exclusion applied: {excluded_count} file(s) excluded according to ARK_Main_Config.yml",
382+
f"⏩ Exclusion appliquée : {excluded_count} fichier(s) exclu(s) selon ark.yml",
383+
f"⏩ Exclusion applied: {excluded_count} file(s) excluded according to ark.yml",
384384
)
385385

386386
try:
@@ -394,7 +394,7 @@ def add_py_files_from_folder(gui_instance, folder: str) -> int:
394394
@staticmethod
395395
def open_ark_config(gui_instance):
396396
"""
397-
Open `ARK_Main_Config.yml` with the system default editor.
397+
Open `ark.yml` with the system default editor.
398398
399399
Args:
400400
gui_instance: Main GUI instance.
@@ -412,7 +412,7 @@ def open_ark_config(gui_instance):
412412
)
413413
return
414414

415-
config_path = os.path.join(workspace_dir, "ARK_Main_Config.yml")
415+
config_path = os.path.join(workspace_dir, "ark.yml")
416416

417417
# Étape 1: créer le fichier config si absent.
418418
if not os.path.exists(config_path):
@@ -421,16 +421,16 @@ def open_ark_config(gui_instance):
421421

422422
if create_default_ark_config(workspace_dir):
423423
gui_instance.log_i18n(
424-
"📋 Fichier ARK_Main_Config.yml créé.",
425-
"📋 ARK_Main_Config.yml file created.",
424+
"📋 Fichier ark.yml créé.",
425+
"📋 ark.yml file created.",
426426
)
427427
except Exception as e:
428428
QMessageBox.critical(
429429
gui_instance,
430430
gui_instance.tr("Erreur", "Error"),
431431
gui_instance.tr(
432-
f"Impossible de créer ARK_Main_Config.yml: {e}",
433-
f"Failed to create ARK_Main_Config.yml: {e}",
432+
f"Impossible de créer ark.yml: {e}",
433+
f"Failed to create ark.yml: {e}",
434434
),
435435
)
436436
return

Core/WorkSpaceManager/WorkspaceAdvancedManipulation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def select_files_manually(gui_instance):
8484
)
8585
if excluded > 0:
8686
gui_instance.log_i18n(
87-
f"⏩ Exclusion appliquée : {excluded} fichier(s) ignoré(s) (ARK_Main_Config.yml).",
88-
f"⏩ Exclusion applied: {excluded} file(s) ignored (ARK_Main_Config.yml).",
87+
f"⏩ Exclusion appliquée : {excluded} fichier(s) ignoré(s) (ark.yml).",
88+
f"⏩ Exclusion applied: {excluded} file(s) ignored (ark.yml).",
8989
)
9090
if hasattr(gui_instance, "update_command_preview"):
9191
gui_instance.update_command_preview()
@@ -198,8 +198,8 @@ def handle_drop_event(gui_instance, event: QDropEvent):
198198
)
199199
if excluded > 0:
200200
gui_instance.log_i18n(
201-
f"⏩ Exclusion appliquée : {excluded} fichier(s) ignoré(s) (ARK_Main_Config.yml).",
202-
f"⏩ Exclusion applied: {excluded} file(s) ignored (ARK_Main_Config.yml).",
201+
f"⏩ Exclusion appliquée : {excluded} fichier(s) ignoré(s) (ark.yml).",
202+
f"⏩ Exclusion applied: {excluded} file(s) ignored (ark.yml).",
203203
)
204204
try:
205205
if hasattr(gui_instance, "apply_file_filter"):

OnlyMod/EngineOnlyMod/gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ def _check_compatibility(self):
888888
self._log(f"Error checking compatibility: {e}")
889889

890890
def _load_entrypoint_from_workspace(self) -> None:
891-
"""Load entrypoint from ARK_Main_Config.yml for current workspace."""
891+
"""Load entrypoint from ark.yml for current workspace."""
892892
self._entrypoint_relpath = None
893893
self.entrypoint_file = None
894894
ws = (self.workspace_edit.text() or "").strip()

0 commit comments

Comments
 (0)