forked from ungleich-public/cdist
		
	don't die if there is no version.py
This commit is contained in:
		
					parent
					
						
							
								fdc1ab93e9
							
						
					
				
			
			
				commit
				
					
						86057cef19
					
				
			
		
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -24,10 +24,13 @@ import os
 | 
			
		|||
import hashlib
 | 
			
		||||
 | 
			
		||||
import cdist.log
 | 
			
		||||
import cdist.version
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
VERSION = cdist.version.VERSION
 | 
			
		||||
try:
 | 
			
		||||
    import cdist.version
 | 
			
		||||
    VERSION = cdist.version.VERSION
 | 
			
		||||
except ModuleNotFoundError:
 | 
			
		||||
    VERSION = 'from git'
 | 
			
		||||
 | 
			
		||||
BANNER = """
 | 
			
		||||
             ..          .       .x+=:.        s
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue