macOS support added

Firmware-Binaries
ThomasToka 5 months ago committed by GitHub
parent 37ab47a7a9
commit c80dbb8611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,6 +11,21 @@ import base64
import math
from PIL import Image
from io import BytesIO
import os
import platform
if platform.system() == "Darwin":
print("Running on macOS")
script_directory = os.path.dirname(os.path.abspath(__file__))
source_file = sys.argv[1]
source_file = os.path.join(script_directory, source_file)
if not os.path.exists(source_file):
print(f"The file '{source_file}' does not exist.")
sys.exit(1)
else:
print(f"The file '{source_file}' exists.")
else:
print("Not running on macOS")
def main(source_file):
# Read the entire G-code file into memory

Loading…
Cancel
Save