Add files via upload

This commit is contained in:
FatihMakes authored and GitHub committed 2026-07-05 18:01:31 +03:00
1 parent ef6fd7a5f6
commit d178f6b9ee
13 files changed
+1401 -412

No files matched your search

+7 -1
View File
@@ -1,11 +1,17 @@
import json
import os
import platform
import shutil
import subprocess
import sys
from datetime import datetime
from pathlib import Path
_CNW: dict = (
{"creationflags": subprocess.CREATE_NO_WINDOW}
if platform.system() == "Windows" else {}
)
def _base_dir() -> Path:
if getattr(sys, "frozen", False):
return Path(sys.executable).parent
@@ -177,7 +183,7 @@ def _schedule_windows(target_dt: datetime, task_name: str,
result = subprocess.run(
["schtasks", "/Create", "/TN", task_name, "/XML", str(xml_path), "/F"],
capture_output=True, text=True,
capture_output=True, text=True, **_CNW,
)
try: