Convert py scripts for py2 and py3 compatibility (#13931)

This commit is contained in:
Alexey Shvetsov
2019-05-08 04:45:01 +03:00
committed by Scott Lahteine
parent 11adcf1ce3
commit af725c81e3
4 changed files with 51 additions and 39 deletions

View File

@ -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'