Merge pull request #32 from makusu2/master

Support for System32 subdirectories
This commit is contained in:
Timothy Sutton 2019-08-29 19:58:33 -07:00 committed by GitHub
commit 06e23d3a93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)