mirror of
				https://github.com/craigerl/aprsd.git
				synced 2025-11-04 05:30:27 -05:00 
			
		
		
		
	sample-config fix
This patch makes a change on how it's calling importlib.entry_points to only fetch the group we want, which is 'oslo.config.opts'. This fixes a problem with python 3.12 compatibility.
This commit is contained in:
		
							parent
							
								
									2e9c9d40e1
								
							
						
					
					
						commit
						0ca5ceee7e
					
				@ -125,12 +125,7 @@ def sample_config(ctx):
 | 
				
			|||||||
    def get_namespaces():
 | 
					    def get_namespaces():
 | 
				
			||||||
        args = []
 | 
					        args = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        all = imp.entry_points()
 | 
					        selected = imp.entry_points(group="oslo.config.opts")
 | 
				
			||||||
        selected = []
 | 
					 | 
				
			||||||
        if "oslo.config.opts" in all:
 | 
					 | 
				
			||||||
            for x in all["oslo.config.opts"]:
 | 
					 | 
				
			||||||
                if x.group == "oslo.config.opts":
 | 
					 | 
				
			||||||
                    selected.append(x)
 | 
					 | 
				
			||||||
        for entry in selected:
 | 
					        for entry in selected:
 | 
				
			||||||
            if "aprsd" in entry.name:
 | 
					            if "aprsd" in entry.name:
 | 
				
			||||||
                args.append("--namespace")
 | 
					                args.append("--namespace")
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user