Skip to content

Commit 2285633

Browse files
Undo all the changes done in utils.py
1 parent 9d1ebe7 commit 2285633

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

apertium/utils.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import subprocess
22
import re
3-
import platform
4-
import os
5-
import logging
63

74
if False:
85
from typing import List, Dict, Tuple, Union # noqa: F401
96

10-
117
import apertium # noqa: F401
128
from apertium.iso639 import iso_639_codes # noqa: F401
139

@@ -41,19 +37,6 @@ def execute(inp, commands): # type: (str, List[List[str]]) -> str
4137
"""
4238
procs = []
4339
end = inp.encode()
44-
45-
# Adding the Apertium Binaries to Process' PATH
46-
if platform.system() == 'Windows':
47-
install_path = os.environ['LOCALAPPDATA']
48-
current = os.environ['path']
49-
logging.info('Currennt path is %s', os.environ['path'])
50-
51-
apertium_path = os.path.join(install_path, 'apertium-all-dev', 'bin')
52-
if os.path.isdir(apertium_path):
53-
update_path = '{};{};'.format(current, apertium_path)
54-
os.environ['path'] = update_path
55-
logging.info('Updated path is %s', os.environ['path'])
56-
5740
for i, command in enumerate(commands):
5841
procs.append(
5942
subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE),

0 commit comments

Comments
 (0)