Merge branch 'dev' into ruff-test

This commit is contained in:
2Shirt 2023-03-19 19:45:26 -07:00
commit bbdc10e0f2
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
8 changed files with 13 additions and 41 deletions

View file

@ -1,12 +1,7 @@
"""WizardKit: Auto Repair Tool""" """WizardKit: Auto Repair Tool"""
# vim: sts=2 sw=2 ts=2 # vim: sts=2 sw=2 ts=2
import os import wk
import sys
os.chdir(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(os.getcwd())
import wk # noqa: E402
# Classes # Classes

View file

@ -1,12 +1,7 @@
"""WizardKit: Auto System Setup Tool""" """WizardKit: Auto System Setup Tool"""
# vim: sts=2 sw=2 ts=2 # vim: sts=2 sw=2 ts=2
import os import wk
import sys
os.chdir(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(os.getcwd())
import wk # noqa: E402
# Classes # Classes

View file

@ -1,12 +1,7 @@
"""WizardKit: Build Kit (Windows).""" """WizardKit: Build Kit (Windows)."""
# vim: sts=2 sw=2 ts=2 # vim: sts=2 sw=2 ts=2
import os import wk
import sys
os.chdir(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(os.getcwd())
import wk # noqa: E402
if __name__ == '__main__': if __name__ == '__main__':

View file

@ -5,12 +5,9 @@ python.exe -i embedded_python_env.py
""" """
# vim: sts=2 sw=2 ts=2 # vim: sts=2 sw=2 ts=2
import os import wk
import sys
os.chdir(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(os.getcwd())
import wk # noqa: E402
wk.std.print_colored( wk.std.print_colored(
(wk.cfg.main.KIT_NAME_FULL, ': ', 'Debug Console'), (wk.cfg.main.KIT_NAME_FULL, ': ', 'Debug Console'),
('GREEN', None, 'YELLOW'), ('GREEN', None, 'YELLOW'),

View file

@ -1,11 +1,6 @@
"""WizardKit: Export Bitlocker Tool""" """WizardKit: Export Bitlocker Tool"""
# vim: sts=2 sw=2 ts=2 # vim: sts=2 sw=2 ts=2
import os import wk
import sys
os.chdir(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(os.getcwd())
import wk # noqa: E402
wk.os.win.export_bitlocker_info() wk.os.win.export_bitlocker_info()

View file

@ -1,13 +1,9 @@
"""WizardKit: Launch Snappy Driver Installer Origin""" """WizardKit: Launch Snappy Driver Installer Origin"""
# vim: sts=2 sw=2 ts=2 # vim: sts=2 sw=2 ts=2
import os import wk
import sys from wk.cfg.net import SDIO_SERVER
os.chdir(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(os.getcwd())
import wk # noqa: E402
from wk.cfg.net import SDIO_SERVER # noqa: E402
# STATIC VARIABLES # STATIC VARIABLES
MOUNT_EXCEPTIONS = ( MOUNT_EXCEPTIONS = (

View file

@ -2,14 +2,10 @@
"""WizardKit: Debug Launcher""" """WizardKit: Debug Launcher"""
# vim: sts=2 sw=2 ts=2 # vim: sts=2 sw=2 ts=2
import os
import pathlib import pathlib
import pickle import pickle
import sys
os.chdir(os.path.dirname(os.path.realpath(__file__))) import wk
sys.path.append(os.getcwd())
import wk # noqa: E402
# STATIC VARIABLES # STATIC VARIABLES

View file

@ -180,6 +180,9 @@ if ($MyInvocation.InvocationName -ne ".") {
} }
Remove-Item "$Temp\python*.zip" Remove-Item "$Temp\python*.zip"
Remove-Item "$Temp\*.whl" Remove-Item "$Temp\*.whl"
foreach ($File in Get-ChildItem "$Bin\Python\*\*._pth") {
Add-Content "$File" "`n#WizardKit`n..\..\Scripts"
}
## Done ## ## Done ##
Pop-Location Pop-Location