mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-24 23:23:54 -06:00
Convert py scripts for py2 and py3 compatibility (#13931)
This commit is contained in:
parent
11adcf1ce3
commit
af725c81e3
4 changed files with 51 additions and 39 deletions
|
@ -1,10 +1,12 @@
|
|||
#!/usr/bin/python3
|
||||
#!/usr/bin/python
|
||||
|
||||
# This file is for preprocessing gcode and the new G29 Autobedleveling from Marlin
|
||||
# It will analyse the first 2 Layer and return the maximum size for this part
|
||||
# After this it will replace with g29_keyword = ';MarlinG29Script' with the new G29 LRFB
|
||||
# the new file will be created in the same folder.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
# your gcode-file/folder
|
||||
folder = './'
|
||||
my_file = 'test.gcode'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue