Remove "Public" from USERS in windows modify shell startup PBA

Otherwise it'll look for a profile.ps1 file in the Public folder too
This commit is contained in:
Shreya 2020-08-03 17:39:11 +05:30
parent c48eef8f94
commit f30b81eec7
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ def get_windows_commands_to_modify_shell_startup_files():
# get list of usernames
USERS = subprocess.check_output('dir C:\\Users /b', shell=True).decode().split("\r\n")[:-1] # noqa: DUO116
USERS.remove("Public")
STARTUP_FILES_PER_USER = ['\\'.join(SHELL_STARTUP_FILE_PATH_COMPONENTS[:2] +
[user] +