Skip to content

Commit 9d1ebe7

Browse files
Added:
';' while updating path values generate logs while updating path
1 parent c10f921 commit 9d1ebe7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

apertium/utils.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
import re
33
import platform
44
import os
5-
5+
import logging
66

77
if False:
88
from typing import List, Dict, Tuple, Union # noqa: F401
99

10+
1011
import apertium # noqa: F401
1112
from apertium.iso639 import iso_639_codes # noqa: F401
1213

@@ -45,10 +46,14 @@ def execute(inp, commands): # type: (str, List[List[str]]) -> str
4546
if platform.system() == 'Windows':
4647
install_path = os.environ['LOCALAPPDATA']
4748
current = os.environ['path']
49+
logging.info('Currennt path is %s', os.environ['path'])
50+
4851
apertium_path = os.path.join(install_path, 'apertium-all-dev', 'bin')
4952
if os.path.isdir(apertium_path):
50-
update_path = '{}{};'.format(current, apertium_path)
53+
update_path = '{};{};'.format(current, apertium_path)
5154
os.environ['path'] = update_path
55+
logging.info('Updated path is %s', os.environ['path'])
56+
5257
for i, command in enumerate(commands):
5358
procs.append(
5459
subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE),

0 commit comments

Comments
 (0)