1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-22 22:50:33 +03:00

util.windows: %SystemDrive% variable expansion added

This commit is contained in:
Игорь Чудов 2020-01-10 19:04:43 +04:00
parent 20608a43f0
commit 5fed5140f4
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -167,6 +167,7 @@ def expand_windows_var(text, username=None):
variables['HOME'] = '/'
variables['SystemRoot'] = '/'
variables['StartMenuDir'] = '/usr/share/applications'
variables['SystemDrive'] = '/'
if username:
variables['HOME'] = get_homedir(username)