Merge branch 'build' into UI_2.0
This commit is contained in:
@@ -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
|
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
|
||||||
4
model.py
4
model.py
@@ -253,7 +253,7 @@ class Model:
|
|||||||
zf.extract(program_name, os_path.join(current_directory, tmp_directory_name))
|
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))
|
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))
|
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)
|
Popen(command)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@@ -261,7 +261,7 @@ class Model:
|
|||||||
program_name = 'VRCT.exe'
|
program_name = 'VRCT.exe'
|
||||||
batch_name = 'restart.bat'
|
batch_name = 'restart.bat'
|
||||||
program_directory = os_path.dirname(__file__)
|
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)
|
Popen(command)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user