mirror of
https://github.com/timsutton/brigadier.git
synced 2025-05-31 07:18:27 -04:00
Check for if PWD is in a folder inside System32 (not just System32 itself), since many sysprep scripts will be executing out of an inner folder
This commit is contained in:
parent
c38e1beb71
commit
733e8d50ef
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ according to the post date.")
|
|||
output_dir = opts.output_dir
|
||||
else:
|
||||
output_dir = os.getcwd()
|
||||
if output_dir.endswith('ystem32'):
|
||||
if output_dir.endswith('ystem32') or '\\system32\\' in output_dir.lower():
|
||||
output_dir = os.environ['SystemDrive'] + "\\"
|
||||
status("Changing output directory to %s to work around an issue \
|
||||
when running the installer out of 'system32'." % output_dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue