Cleaner code, it works pretty fine

This commit is contained in:
Roncero Blanco, Edgar
2025-05-26 18:26:30 +02:00
parent a46d810d0a
commit 189645254b
7 changed files with 26 additions and 25 deletions

1
.gitignore vendored
View File

@@ -182,3 +182,4 @@ cython_debug/
# ed1337x # ed1337x
config.ini config.ini
Run.ps1

25
Run.cmd Normal file
View File

@@ -0,0 +1,25 @@
@echo off
setlocal
REM Define paths
set VENV_DIR=venv
set APP_DIR=Program
set PYTHON=%VENV_DIR%\Scripts\python.exe
REM Check for venv
if not exist %VENV_DIR% (
echo Creating virtual environment...
python -m venv %VENV_DIR%
echo Installing dependencies...
%PYTHON% -m pip install --upgrade pip
%PYTHON% -m pip install -r requirements.txt
) else (
echo Virtual environment found, assuming dependencies are satisfied.
)
REM Run the app
cd /d %~dp0%APP_DIR%
..\%VENV_DIR%\Scripts\python.exe app.py
endlocal

BIN
requirements.txt Normal file

Binary file not shown.

View File

@@ -1,13 +0,0 @@
@echo off
REM Create Python virtual environment named "venv"
python -m venv venv
REM Activate the virtual environment
call venv\Scripts\activate.bat
REM Upgrade pip
python -m pip install --upgrade pip
REM Install dependencies
pip install mutagen

View File

@@ -1,12 +0,0 @@
# Create Python virtual environment named "venv"
python -m venv venv
# Activate the virtual environment
& .\venv\Scripts\Activate.ps1
# Upgrade pip
python -m pip install --upgrade pip
# Install dependencies
pip install mutagen