commit 598a360ef3d9c0411ba27a0573a567eeb389cb56 Author: Vaydheesh Date: Sun Apr 7 06:30:25 2019 +0530 Implemented changes suggested Removed: from os import path Edited: Process' Path comment diff --git a/apertium/utils.py b/apertium/utils.py index 8c07eb7..5f716c8 100644 --- a/apertium/utils.py +++ b/apertium/utils.py @@ -2,7 +2,6 @@ import subprocess import re import platform import os -from os import path if False: @@ -42,12 +41,12 @@ def execute(inp, commands): # type: (str, List[List[str]]) -> str procs = [] end = inp.encode() - # Adding the Apertium Binaries to PATH + # Adding the Apertium Binaries to Process' PATH if platform.system() == 'Windows': install_path = os.getenv('LOCALAPPDATA') current = os.getenv('path') - apertium_path = path.join(install_path, 'apertium-all-dev', 'bin') - if path.isdir(apertium_path): + apertium_path = os.path.join(install_path, 'apertium-all-dev', 'bin') + if os.path.isdir(apertium_path): update = '{}{};'.format(current, apertium_path) os.putenv('path', update) for i, command in enumerate(commands):