From 69beabc08fa4ea899dbc3706fe319fc73bce9e89 Mon Sep 17 00:00:00 2001 From: Dobin Date: Fri, 16 Feb 2024 09:14:47 +0000 Subject: [PATCH] refactor: fix build dir --- helper.py | 10 +++++----- phases/templater.py | 1 - project.py | 3 +-- supermega.py | 1 - 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/helper.py b/helper.py index d710d1f..0697adb 100644 --- a/helper.py +++ b/helper.py @@ -23,11 +23,11 @@ def clean_files(): "mllink$.lnk", # out/ stuff - os.path.join(project.build_dir, "main.asm"), - os.path.join(project.build_dir, "main.bin"), - os.path.join(project.build_dir, "main.c"), - os.path.join(project.build_dir, "peb_lookup.h"), - #os.path.join(project.build_dir, "main.exe"), + os.path.join(build_dir, "main.asm"), + os.path.join(build_dir, "main.bin"), + os.path.join(build_dir, "main.c"), + os.path.join(build_dir, "peb_lookup.h"), + #os.path.join(build_dir, "main.exe"), project.verify_filename, ] diff --git a/phases/templater.py b/phases/templater.py index bb00824..14a6ac8 100644 --- a/phases/templater.py +++ b/phases/templater.py @@ -23,7 +23,6 @@ def create_c_from_template( alloc_style: AllocStyle, exec_style: ExecStyle, decoder_style: DecoderStyle, - build_dir: FilePath, ): plugin_allocator = "" plugin_decoder = "" diff --git a/project.py b/project.py index 18c14f4..095e8e9 100644 --- a/project.py +++ b/project.py @@ -33,7 +33,6 @@ class Project(): self.generate_shc_from_asm: bool = True self.verify_filename = r'C:\Temp\a' - self.build_dir = "build" - + project = Project() diff --git a/supermega.py b/supermega.py index 5074817..af8ad8e 100644 --- a/supermega.py +++ b/supermega.py @@ -163,7 +163,6 @@ def start(): alloc_style = project.alloc_style, exec_style = project.exec_style, decoder_style= project.decoder_style, - build_dir = project.build_dir, ) # Convert: C -> ASM