diff --git a/restart.bat b/batch/restart.bat similarity index 100% rename from restart.bat rename to batch/restart.bat diff --git a/update.bat b/batch/update.bat similarity index 100% rename from update.bat rename to batch/update.bat diff --git a/build.bat b/build.bat index 9c7d54fe..6dcbbf71 100644 --- a/build.bat +++ b/build.bat @@ -1 +1 @@ -pyinstaller --onedir --onefile --windowed --clean --icon="./img/vrct_logo_mark_black.ico" --add-data "./img;img/" --add-data "./locales;locales/" --add-data "./update.bat;./" --add-data "./restart.bat;./" --name VRCT --exclude-module numpy --exclude-module pandas --exclude-module matplotlib --exclude-module PyQt5 main.py \ No newline at end of file +pyinstaller --onedir --onefile --windowed --clean --icon="./img/vrct_logo_mark_black.ico" --add-data "./img;img/" --add-data "./locales;locales/" --add-data "./batch;batch/" --name VRCT --exclude-module numpy --exclude-module pandas --exclude-module matplotlib --exclude-module PyQt5 main.py \ No newline at end of file diff --git a/model.py b/model.py index 2b3eaf80..292c387c 100644 --- a/model.py +++ b/model.py @@ -253,7 +253,7 @@ class Model: zf.extract(program_name, os_path.join(current_directory, tmp_directory_name)) os_rename(os_path.join(current_directory, tmp_directory_name, program_name), os_path.join(current_directory, temporary_name)) rmtree(os_path.join(current_directory, tmp_directory_name)) - command = [os_path.join(program_directory, batch_name), program_name, temporary_name, str(restart)] + command = [os_path.join(program_directory, "batch", batch_name), program_name, temporary_name, str(restart)] Popen(command) @staticmethod @@ -261,7 +261,7 @@ class Model: program_name = 'VRCT.exe' batch_name = 'restart.bat' program_directory = os_path.dirname(__file__) - command = [os_path.join(program_directory, batch_name), program_name] + command = [os_path.join(program_directory, "batch", batch_name), program_name] Popen(command) @staticmethod