14 lines
378 B
Python
14 lines
378 B
Python
from pathlib import Path
|
|
import os
|
|
import sys
|
|
|
|
APP_PATH = os.path.dirname(sys.executable) if getattr(sys, 'frozen', False) else os.path.dirname(__file__)
|
|
|
|
LOGGER_NAME = 'assemblr'
|
|
LOG_FILE = Path(APP_PATH) / Path(f'{LOGGER_NAME}.log')
|
|
MAX_LOG_FILE_SIZE_BYTES = 400 * 1024 ** 2
|
|
APKS_PATH = os.path.join(APP_PATH, 'apks')
|
|
|
|
if not os.path.isdir(APKS_PATH):
|
|
os.mkdir(APKS_PATH)
|