commit a55b5d05e6e4d076ccd504fd2b1d1d7acbfb9efa Author: Vaydheesh Date: Sun Apr 7 07:42:37 2019 +0530 added: class method install to call all the relevant methods diff --git a/installer.py b/installer.py index 4ae520b..89cc033 100644 --- a/installer.py +++ b/installer.py @@ -111,12 +111,15 @@ class Installer: with open(os.path.join(mode_path, file), 'w') as outfile: outfile.write(line) outfile.close() + + def install(self): + self.download_apertium_windows() + self.download_package() + self.edit_modes() def install_apertium_windows(): """Download ApertiumWin64 and Move to %localappdata%""" if platform.system() == 'Windows': p = Installer(['apertium-eng', 'apertium-en-es']) - p.download_apertium_windows() - p.download_package() - p.edit_modes() + p.install()