mirror of
				https://github.com/kastdeur/lilydrum.git
				synced 2025-10-31 02:06:34 +01:00 
			
		
		
		
	Moved lilydrum directory
small changes to headers
This commit is contained in:
		
							parent
							
								
									34641ea703
								
							
						
					
					
						commit
						e574767762
					
				
					 13 changed files with 30 additions and 21 deletions
				
			
		
							
								
								
									
										9
									
								
								makedrum
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								makedrum
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -122,6 +122,8 @@ class MakeDrum:
 | 
			
		|||
				header_format = "header_book"
 | 
			
		||||
			else:
 | 
			
		||||
				header_format = "header_default"
 | 
			
		||||
		else:
 | 
			
		||||
			header_format = "header_" + self.args.format
 | 
			
		||||
 | 
			
		||||
		tmp_file = self.maketemplate(tmp_dir, file, header_format)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -198,6 +200,13 @@ class MakeDrum:
 | 
			
		|||
		printit = 1
 | 
			
		||||
		for line in music:
 | 
			
		||||
			if line.startswith(u'\\include "lilydrum.ly"'): continue
 | 
			
		||||
			if line.startswith(u'\\include'):
 | 
			
		||||
				# Rewrite includes to absolute location of file
 | 
			
		||||
				incline = line.replace('\\include', '').strip('"\' ')
 | 
			
		||||
				print("include "+incline)
 | 
			
		||||
				if not incline.startswith('\\'): #already absolute
 | 
			
		||||
					incline = os.path.join(os.path.relpath(os.path.dirname(file)), incline)
 | 
			
		||||
					line = "\\include \""+incline+"\""
 | 
			
		||||
			if printit:
 | 
			
		||||
				out_file.write(line.replace('\r', '')+'\n')
 | 
			
		||||
		out_file.close()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue