From a07c29adf4ccd5cef6ed87012d0f28fcf9221eda Mon Sep 17 00:00:00 2001 From: Curle Date: Fri, 26 Jul 2019 16:17:28 +0100 Subject: [PATCH] Adventures in getting the compilescript to work. For some reason, git is now the only way for me to update the files. Annoying, but okay. --- compile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compile.py b/compile.py index c750bd2..347de12 100644 --- a/compile.py +++ b/compile.py @@ -6,7 +6,7 @@ print(CurrentPath) # Here goes the absolute path to your x86_64-mingw-w64 folder. # There should be a \bin\gcc.exe relative to that folder. -GCC_FOLDER = "C:\\Users\Gem\Desktop\comp\mingw64" +GCC_FOLDER = "C:\\Users\ruby\Desktop\comp\mingw64" if os.path.exists('objects.list'): os.remove("objects.list") @@ -20,7 +20,7 @@ with open('c_files.txt') as file: line = file.readline().strip() while line: line = line[:-2] - print(f'{HeaderFiles}') + print(HeaderFiles) if line == "gnu-efi/lib/x86_64/setjmp" or line == "gnu-efi/lib/x86_64/efi_stub": print(f'Assembling file {line}.s') @@ -33,7 +33,7 @@ with open('c_files.txt') as file: os.path.normpath(OBJECTS) - with open('objects.list', 'a') as objectsfile: + with open('objects.list', 'w') as objectsfile: ofile = OBJECTS.replace('\\', '/') objectsfile.write(ofile + "\n") line = file.readline().strip()