- Created .gitignore to exclude virtual environment, logs, and database files. - Updated README.md with project description, features, folder structure, requirements, and usage instructions. - Implemented versioning and developer ID in agentm/__init__.py. - Developed main application logic in agentm/app.py, including credential handling and screen navigation. - Added database initialization and ROM management logic in agentm/logic/db.py and agentm/logic/db_functions.py. - Integrated DIAMBRA login functionality in agentm/logic/diambra_login.py. - Created ROM verification and caching system in agentm/logic/roms.py. - Designed user interface components for home and login screens in agentm/views/home.py and agentm/views/login.py. - Added logging utility in agentm/utils/logger.py for better debugging and tracking. - Included assets such as game images, styles, and logos. - Updated requirements.txt with necessary dependencies for the project.
12 lines
419 B
Python
12 lines
419 B
Python
from pathlib import Path
|
|
|
|
__version__ = "0.1.0"
|
|
__developer_id__ = "mscrnt-0001"
|
|
|
|
# Always resolve to the root of the project (1 level up from /agentm/)
|
|
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
|
DIAMBRA_CREDENTIALS_PATH = PROJECT_ROOT / ".diambra" / "credentials"
|
|
DIAMBRA_CREDENTIALS_PATH.parent.mkdir(parents=True, exist_ok=True)
|
|
if not DIAMBRA_CREDENTIALS_PATH.exists():
|
|
DIAMBRA_CREDENTIALS_PATH.touch()
|