This commit is contained in:
Gres 2020-03-01 22:20:56 +03:00
parent a2a24f6648
commit 40f37f648d

View File

@ -204,7 +204,7 @@ def apply_cmd_env(cmd):
key, value = match.groups() key, value = match.groups()
if key in os.environ and os.environ[key] == value: if key in os.environ and os.environ[key] == value:
continue continue
if key.lower().find('PATH') != -1 and value.find('/') != -1: if key.upper().find('PATH') != -1 and value.find('/') != -1:
value = value.replace(':', ';') value = value.replace(':', ';')
value = re.sub(r'/(\w)/', r'\1:\\', value) value = re.sub(r'/(\w)/', r'\1:\\', value)
value = value.replace('/', '\\') value = value.replace('/', '\\')