Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
b268385e0b
5 changed files with 20 additions and 13 deletions
|
|
@ -6,7 +6,7 @@ from functions.common import *
|
||||||
|
|
||||||
def get_json_from_command(cmd, ignore_errors=True):
|
def get_json_from_command(cmd, ignore_errors=True):
|
||||||
"""Capture JSON content from cmd output, returns dict.
|
"""Capture JSON content from cmd output, returns dict.
|
||||||
|
|
||||||
If the data can't be decoded then either an exception is raised
|
If the data can't be decoded then either an exception is raised
|
||||||
or an empty dict is returned depending on ignore_errors.
|
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):
|
except (subprocess.CalledProcessError, json.decoder.JSONDecodeError):
|
||||||
if not ignore_errors:
|
if not ignore_errors:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
return json_data
|
return json_data
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
# Wizard Kit: Settings - Browsers
|
# Wizard Kit: Settings - Browsers
|
||||||
|
|
||||||
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
# General
|
# General
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@
|
||||||
import ctypes
|
import ctypes
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
from settings.main import *
|
||||||
|
|
||||||
# FastCopy
|
# FastCopy
|
||||||
FAST_COPY_EXCLUDES = [
|
FAST_COPY_EXCLUDES = [
|
||||||
r'\*.esd',
|
r'\*.esd',
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
# Wizard Kit: Settings - Setup
|
# Wizard Kit: Settings - Setup
|
||||||
|
|
||||||
|
import winreg
|
||||||
|
|
||||||
# General
|
# General
|
||||||
HKU = winreg.HKEY_USERS
|
HKU = winreg.HKEY_USERS
|
||||||
HKCR = winreg.HKEY_CLASSES_ROOT
|
HKCR = winreg.HKEY_CLASSES_ROOT
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,18 @@
|
||||||
# Wizard Kit: Settings - WinPE
|
# 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
|
# General
|
||||||
PE_TOOLS = {
|
PE_TOOLS = {
|
||||||
'BlueScreenView': {
|
'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__':
|
if __name__ == '__main__':
|
||||||
print("This file is not meant to be called directly.")
|
print("This file is not meant to be called directly.")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue