Convert py scripts for py2 and py3 compatibility (#13931)
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							11adcf1ce3
						
					
				
				
					commit
					af725c81e3
				
			@@ -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'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user