Fixed updateshutup10()

This commit is contained in:
2Shirt 2018-10-06 19:20:29 -06:00
parent f097b98c85
commit f5caaf09c2

View file

@ -639,7 +639,7 @@ def update_adobe_reader_dc():
def update_eset_config():
"""Copy config files to .cbin before compress_item"""
dest = r'{}\ESETConfigs'.format(global_vars['cbindir'])
dest = r'{}\ESETConfigs'.format(global_vars['CBinDir'])
include_path = r'{}\_include\ESETConfigs'.format(global_vars['CBinDir'])
if os.path.exists(include_path):
shutil.copytree(include_path, dest)
@ -853,17 +853,18 @@ def update_shutup10():
# Remove existing folders
remove_from_kit('ShutUp10')
# Copy settings
dest = r'{}\ShutUp10'.format(global_vars['CBinDir'])
include_path = r'{}\_include\ShutUp10'.format(global_vars['CBinDir'])
if os.path.exists(include_path):
shutil.copytree(include_path, dest)
# Download
download_generic(
r'{}\ShutUp10'.format(global_vars['CBinDir']),
'OOSU10.exe',
SOURCE_URLS['ShutUp10'])
# Copy settings
include_path = r'{}\_include\ESETConfigs'.format(global_vars['CBinDir'])
if os.path.exists(include_path):
shutil.copytree(include_path, dest)
def update_wiztree():
# Stop running processes
for process in ['WizTree.exe', 'WizTree64.exe']: