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()