Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
2Shirt 2019-03-13 19:04:01 -06:00
commit b268385e0b
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
5 changed files with 20 additions and 13 deletions

View file

@ -6,7 +6,7 @@ from functions.common import *
def get_json_from_command(cmd, ignore_errors=True):
"""Capture JSON content from cmd output, returns dict.
If the data can't be decoded then either an exception is raised
or an empty dict is returned depending on ignore_errors.
"""
@ -22,7 +22,7 @@ def get_json_from_command(cmd, ignore_errors=True):
except (subprocess.CalledProcessError, json.decoder.JSONDecodeError):
if not ignore_errors:
raise
return json_data

View file

@ -1,5 +1,6 @@
# Wizard Kit: Settings - Browsers
import os
import re
# General

View file

@ -3,6 +3,8 @@
import ctypes
import re
from settings.main import *
# FastCopy
FAST_COPY_EXCLUDES = [
r'\*.esd',

View file

@ -1,5 +1,7 @@
# Wizard Kit: Settings - Setup
import winreg
# General
HKU = winreg.HKEY_USERS
HKCR = winreg.HKEY_CLASSES_ROOT

View file

@ -1,5 +1,18 @@
# Wizard Kit: Settings - WinPE
from settings.data import *
# FastCopy
FAST_COPY_PE_ARGS = [
'/cmd=noexist_only',
'/utf8',
'/skip_empty_dir',
'/linkdest',
'/no_ui',
'/auto_close',
'/exclude={}'.format(';'.join(FAST_COPY_EXCLUDES)),
]
# General
PE_TOOLS = {
'BlueScreenView': {
@ -37,17 +50,6 @@ PE_TOOLS = {
},
}
# FastCopy
FAST_COPY_PE_ARGS = [
'/cmd=noexist_only',
'/utf8',
'/skip_empty_dir',
'/linkdest',
'/no_ui',
'/auto_close',
'/exclude={}'.format(';'.join(FAST_COPY_EXCLUDES)),
]
if __name__ == '__main__':
print("This file is not meant to be called directly.")